会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
三生石上(FineUI控件)
企业级 ASP.NET UI 控件库(支持 .NET 8.0)
首页
新随笔
联系
管理
订阅
2009年4月30日
Confused with JavaScript prototype
摘要: They are two similar code below: 1.function User(name) {this.name = name;}User.prototype = { 'sex': 'man' };var user = new User('Zhang');alert(User.prototype['sex']); // manalert(user.constructor.pr...
阅读全文
posted @ 2009-04-30 17:19 三生石上(FineUI控件)
阅读(391)
评论(0)
推荐(0)
编辑
公告