开发用到的js封装方法(20种) 1、判断是否是一个数组functionisArray(arr){returnObject.prototype.toString.call(arr)==='[objectArray]';}isArray js封装