会员
周边
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
yellowshorts
博客园
首页
新随笔
联系
订阅
管理
2014年11月17日
js 创建对象
摘要: 1.工厂模式 function createPerson(name, age, job) { var o = new Object(); o.name = name; o.age = age; o....
阅读全文
posted @ 2014-11-17 17:15 yellowshorts
阅读(144)
评论(0)
推荐(0)
编辑
js 属性类型
摘要: 1.访问器属性 var book = { _year: 2004, edition: 1 }; Object.defineProperty(book, "year", { get: funct...
阅读全文
posted @ 2014-11-17 17:04 yellowshorts
阅读(552)
评论(0)
推荐(0)
编辑
公告