摘要:
var queryEle = function(selector){ var selectReg = /^(#)?(\.)?(\w+)$/img; var result = selectReg.exec(selector), data = []; //id if(result[1]){ ... 阅读全文
摘要:
console.log(isArray([]));function isArray(arr){ if(typeof Array.isArray === 'undefined'){ Array.isArray = function(arr){ return Object.prototype.toString.call(arr) === '[object A... 阅读全文