資料類型檢測
// 類型檢測
typeof str //檢測string boolean number undefind
toString.call(obj) //檢測 null function object array...等對象
a instanceof Object //a是否是由 Object構造
posted @ 2017-09-04 15:54 DaivdAndLemon 閱讀( ...) 評論( ...) 編輯 收藏