摘要: 一、构造函数直接返回一个对象,避免调用时出错。 Function Fvar F = function () { var f = this; instanceOf = function (o, type){ return (o && o.hasOwnProperty && (o instanceof type)); }; if(!(instanceOf(f, F))){ f = ... 阅读全文
posted @ 2013-09-10 14:55 独角xi 阅读(2970) 评论(0) 推荐(0) 编辑