随笔分类 -  JS

摘要:1. js函数 var table = function(){ var totalCount = 10; //给函数添加一个方法,返回成员变量的值,供调用 this.getTotalCount = function(){ return totalCount; }; }; 2. 调用 //调用函数对象的成员方法 new table().getTotalCount() 阅读全文
posted @ 2015-04-17 17:59 jerry心 阅读(2154) 评论(0) 推荐(0)