判斷字符串、數組

function type(obj){
          return Object.prototype.toString.call(obj).slice(8,-1)
      }
相關文章
相關標籤/搜索