According to MSDN:JScript delete Operator
Deletes a property from an object, or removes an element from an array.delete expression
The expression argument is a valid JScript expression that usually results in a property name or array element. Res
If the result of expression is an object, the property specified in expression exists, and the object will not allow it to be deleted, false is returned.In all other cases, true is returned.---------------------
Array is an object
Deletes a property from an object, or removes an element from an array.delete expression
The expression argument is a valid JScript expression that usually results in a property name or array element. Res
If the result of expression is an object, the property specified in expression exists, and the object will not allow it to be deleted, false is returned.In all other cases, true is returned.---------------------
Array is an object
照您这样说,难道说彻底释放数组占用的资源就只能一个一个元素地删除吗?
要不然就只有循环删除了
GarbageCollect();