标签:io ar sp cti log on c new r
<script> function Person(name , age){ this.name = name ; this.age = age ; this.say = function (){ return "name : "+ this.name + "age: "+this.age ; } ; } var o = new Object() ; Person.call(o , "zhangsan" , 20) ; console.log(o.say() );//name : zhangsanage: 20 </script>
标签:io ar sp cti log on c new r
原文地址:http://my.oschina.net/itfanr/blog/313352