会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
不想飞的小鸟
博客园
首页
新随笔
订阅
管理
2019年6月29日
原型链和原型
摘要: 构造函数创建对象 ==========咱们先来一个栗子======= function Person(name){ //构造函数 this.name=name; } Person.prototype.printName=function( ){ //原型对象 alert(this.name); }
阅读全文
posted @ 2019-06-29 01:57 不想飞的小鸟
阅读(136)
评论(0)
推荐(0)
编辑
公告