var fr = {};fr.dom = function(){}fr.dom.VERSION = '0.10';/** * get element by id * @param {String} name *///用prototpye就报错:is not a functionalan.dom.prototype.id= function(name){ return document.getElementById(name)}//而不用prototype 就可以了,不知为什么?谢谢alan.dom.id= function(name){ return document.getElementById(name)}
添加回答
举报
0/150
提交
取消