js中有沒有像php中unset一樣函數
3 回答

動漫人物
TA貢獻1815條經驗 獲得超10個贊
delete不就能用嗎?
如果用var 定義,就不能注銷
如果不用var 就能注銷
var hello="hello";
delete(hello);
alert(hello); //hello
hello="hello";
delete(hello);
alert(hello): //出錯hello未定義
- 3 回答
- 0 關注
- 2047 瀏覽
添加回答
舉報
0/150
提交
取消