摘要: var queryEle = function(selector){ var selectReg = /^(#)?(\.)?(\w+)$/img; var result = selectReg.exec(selector), data = []; //id if(result[1]){ ... 阅读全文
posted @ 2016-05-28 21:47 淡然_ 阅读(211) 评论(0) 推荐(0)
摘要: console.log(isArray([]));function isArray(arr){ if(typeof Array.isArray === 'undefined'){ Array.isArray = function(arr){ return Object.prototype.toString.call(arr) === '[object A... 阅读全文
posted @ 2016-05-28 12:32 淡然_ 阅读(263) 评论(0) 推荐(0)