[JS] console.log會騙人



就是經過JS運算出來
使用console.log
如果是字串的123

也是會顯示 123

不像直接在瀏覽器的console.log
會顯示 "123"

有那個""

所以要確認資料屬性
要去檢測資料type

留言

這個網誌中的熱門文章

[Angular] 閒置登出作法

[JavaScript] 將array object 根據值重新 js format的作法