仿jquery的函数
var $ = function (id) {
return "string" == typeof id ? document.getElementById(id) : id;
};
var Each = function(list, fun){
for (var i = 0, len = list.length; i < len; i++) { fun(list[i], i); }
};
var $ = function (id) {
return "string" == typeof id ? document.getElementById(id) : id;
};
var Each = function(list, fun){
for (var i = 0, len = list.length; i < len; i++) { fun(list[i], i); }
};