Javascript ~ unset variable

delete xxx[id];


if(typeof(xxx[id]) != 'undefined'){
//do something
}else{
//do something
}

reference
http://stackoverflow.com/questions/1596782/how-to-unset-a-javascript-variable

沒有留言: