专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅
作为Extjs 使用前提JavaScript中类概念是必不可少 ①定义个类 ="javascript">/* ①定义个类 两个属性id,name this表示当前对象 列出属性同时必须赋初值,这样才会被认为是属性 */ function Customer { this.id = 0; this.name = ''; } //创建例子 var customer1 = Customer; customer1.id = '101'; customer1.name = 'Customer1'; //对例子结构为 10 [阅读全文] [PDF]
1 共1条 分1页