js中有沒有像php中unset一樣函數(shù)
3 回答

動(dòng)漫人物
TA貢獻(xiàn)1815條經(jīng)驗(yàn) 獲得超10個(gè)贊
delete不就能用嗎?
如果用var 定義,就不能注銷
如果不用var 就能注銷
var hello="hello";
delete(hello);
alert(hello); //hello
hello="hello";
delete(hello);
alert(hello): //出錯(cuò)hello未定義
- 3 回答
- 0 關(guān)注
- 2057 瀏覽
添加回答
舉報(bào)
0/150
提交
取消