javascript判斷一個值是否是undefined

要用
code

if (val != undefined)

不能用class

if (!val)

由於若是這個值是0的話後面這個用法會有問題co

相關文章
相關標籤/搜索