标签:io ar java on cti as new br type
Object.create(); //这个在ECMAscript5 才有的方法,注意浏览器的兼容性 //通过原型继承 var obj = {name:‘huangyanxiong‘,qqqun:151327334}; function x(){}; x.prototype= obj; var f = new(); console.info(f); //可以看到obj对象都会继承下来
标签:io ar java on cti as new br type
原文地址:http://my.oschina.net/freax/blog/356063