
讲这一节之前,先回顾之前一段代码:
(function (win) {
var _$ = function (selector, context) {
return new _$.prototype.Init(selector, context);
}
_$.prototype = {
Init: function (selector, context) {
this.elements = [];
var context = context || document;
if (context.querySelectorAll) {
var arr = context.querySelectorAll(selector);
for (var i = 0; i
© 版权声明
文章版权归作者所有,未经允许请勿转载。
相关文章
暂无评论...