判断字符串、数组

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