Setting a Javascript variable to undefined

来源:互联网 发布:linux定时任务crontab 编辑:程序博客网 时间:2024/05/29 14:44

http://stackoverflow.com/questions/5795936/how-to-set-a-javascript-var-as-undefined

delete boo

Don't use var boo = undefined. undefined is just a variable and if someone sets undefined = "hello" then you'll be getting hello everywhere :)

EDIT:

null wasn't same as undefined. removed that bit.


0 0
原创粉丝点击