阅读背景:

函数的一些属性和方法

来源:互联网 
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>函数</title> </head> <body> <script type="text/javascript"> /*函数: arguments prototype 原型 对象 call apply*/ //人对象 function Person(name,age){ this.name=name; this.age=age; } Person.prototype.say=function(){ console.log(this.name+' 说话'); }; var p=new Person('小花',20); p.say(); console.log(Person); console.log(Person.prototype); </script> </body> </html> <!DOCTYPE html> <html> <head> <meta charset="utf-



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: