/* * 方法:Array.remove(dx) * 功能:根据元素位置值删除数组元素. * 参数:元素值 * 返回:在原数组上修改数组 */ Array.prototype.baoremove = function(dx) { if (isNaN(dx) || dx > this.length) { return false; } this.splice(dx, 1); };
for (var k = 0; k < ClassStudentList.CheckedList.length; k++)
{
if (ClassStudentList.CheckedList[k].Cid==cid)
{ ClassStudentList.CheckedList.baoremove(k); } }