/*
* Method :Array.remove(dx)
* function : Delete array elements according to their position values .
* Parameters : Element value
* return : Modify the array on the original array
*/
Array.prototype.baoremove = function(dx) {
if (isNaN(dx) || dx > this.length) {
return false;
}
this.splice(dx, 1);
};

Then call it directly on the array

for (var k = 0; k < ClassStudentList.CheckedList.length; k++) 
{
if (ClassStudentList.CheckedList[k].Cid==cid)
 {
ClassStudentList.CheckedList.baoremove(k);
}
}

js array Array delete element more related articles

  1. js Array Use of arrays

    js Array Use of arrays   Array yes javascript A predefined object in ( It can also be called a class ), You can use it directly establish Array object var array=new Array(): Create the specified element ...

  2. ( Reprint )php Summary of various methods for deleting elements in arrays

    ( Reprint )http://www.111cn.net/phper/php/46865.htm There are many friends who don't know how to delete the elements in the array , Now I'll summarize all kinds of array deletion methods for you , Friends who need to know can enter the reference . ...

  3. js Traversing the collection, deleting elements

    js Traversing the collection, deleting elements /** * Effective way - Change the subscript , Control traversal */ for (var i = 0; i < arr.length; i++) { if (...) { arr.spli ...

  4. C# Array delete elements

    One .C# Array delete elements stay C# in , Only in dynamic arrays ArrayList Class to delete elements from an array . Because a dynamic array is a data type that can change the length of the array and the number of elements . Example : using System;using S ...

  5. js Add elements dynamically Delete element logic

    js Add elements dynamically Delete element logic var obox=document.getElementById("box"); oadd.onclick=function(){ var odi ...

  6. JS Array methods array Array declaration Addition and deletion of elements etc.

    Declaration array var arr1 = [1,2,3,4,5]; var arr2 = new Array(100); // The declaration length is 100 Of arr2 Array . arr2=[]; arr2.length = 10 ...

  7. js Array delete elements , And get the real length

    Preface :js Array deletion generally uses array splice Methods and delete Method , But with delete Method, directly after the array .kength To get the length of an array can't get the real length , Let's talk about it in detail . One .splic ...

  8. js array Array object operation method summary

    -------------------------- Update from 2018.6.11 js  The operation method of array object is as follows : 1.  Create array var array1 = [1,2] // Method 1 var array2 = ...

  9. js Array Summary of common methods for array objects

    Array Objects are generally used to store data . The common methods include : 1.concat() Method concat()  Method is used to merge two or more arrays . It doesn't change an existing array , Instead, it returns a new array . for example : var arr1=[1, ...

Random recommendation

  1. Android stay C Call in code logcat

    This article to <Android java Pass on int Type array gives C> Add C Call in code logcat The function of Android.mk Add the following to the document LOCAL_LDLIBS += -llog C Add in code ...

  2. 《 Build the method of 》 The first 8、9、10 After reading this chapter , as well as sprint summary

    The first 8 Chapter :  This paper mainly introduces the types of software requirements . stakeholders , Get the common methods and steps of user needs analysis . The framework of competitive demand analysis NABCD, Four quadrant method and project planning and estimation techniques . 1. The software requirements : In order to solve all kinds of problems in real society and life ...

  3. Java Memory area allocation gene memory overflow exception

  4. unix network programming(3rd)Vol.1 [ The first 13~15 Chapter ]《 Reading notes series 》

    The first 13 Chapter Daemons and inetd Superserver syslog() daemon_init() setuid() setgid() The first 14 Chapter senior IO standard I/O function library , Support 3 A buffer buffer ( Read write storage devices ( hard ...

  5. Database version management tools Flyway(4.0.3)--- Working mechanism ( translation )

    How Flyway works The easiest scenario is when you point Flyway to an empty database. The easiest solution is Flyway Point to ...

  6. Java Basic knowledge of ( One )

    Java Basic knowledge : One . Key words explanation 1. final: Modify non abstract classes , Non abstract methods and properties , And modifying method parameters , representative “ Can't change ”. Use this keyword for design or efficiency reasons . final Class cannot be inherited ,fina ...

  7. zookeeper Basic explanation and basic command and configuration ( turn )

    One .ZooKeeper summary ZooKeeper It's a high availability design for distributed applications . High performance and consistent open source coordination services , yes Google Of Chubby An open source implementation , yes Hadoop and Hbase Important components , It provides a ...

  8. MongoDB And SpringBoot Integrate ( Support transactions )

    1. establish SpringBoot engineering , choice Web.MonogDB rely on ,pom as follows : <parent> <groupId>org.springframework.boot< ...

  9. DOM And JavaScript、jQuery The relationship between

    DOM(document object model) In fact, it is a general term for element objects in browsers We use it JavaScript All operations on Web pages are done through DOM On going .DOM Belong to browser , instead of JavaScript ...

  10. pyqt5 Change the color of the form

    from PyQt5.QtWidgets import QApplication,QWidget from PyQt5.QtGui import QColor import sys from t im ...