代码
var item = 12;
var itemref = item;
item = 13;
alert(item== itemref);
return false;
var item = new Object();
var itemref = item;
item.name = "test name";
alert(item == itemref);
return true;
var itemref = item;
item = 13;
alert(item== itemref);
return false;
var item = new Object();
var itemref = item;
item.name = "test name";
alert(item == itemref);
return true;