1 var Class = {2     create: function() {3         return function() { 4             this.initialize.apply(this, arguments); }5     }6 };        1 var Extend = function(destination, source) {2     for (var PRoperty in source) {3         destination[property] = source[property];4     }5 }; 1 var Attr = function (element, key, value) { 2     if(arguments.length == 2){ 3         if(element.getAttribute){ 4             return element.getAttribute(key) || element[key] || undefined; 5         } 6     } 7     else if(arguments.length == 3){ 8         element.setAttribute(key,value); 9     }10 };新闻热点
疑难解答