views:

37

answers:

3

this is the demo code :

function a(){
    this.a='aaa'
}
var aa=new a

how to clear the aa object from the memory

thanks

+1  A: 

I may be wrong but I think setting the variable to null should do the trick.

Phil Brown
+1  A: 

set aa = null, alert(aa)!

Dragoon zhang