Possible Duplicate:
Deleting Objects in JavaScript
This is the demo code:
开发者_如何学Pythonfunction a(){
this.a='aaa'
}
var aa=new a
How to clear the aa
object from the memory?
I may be wrong but I think setting the variable to null
should do the trick.
set aa = null
, alert(aa)!
精彩评论