摘要: var vm=(function(){ var name="jasper"; var changename=function(v){ name=v; }; return { name:name, changename:changename };})();vm.changename("sean");alert(vm.name);var vm=(function(){ var person={name:"jasper"}; var changename=function(v){ person.name=v; }; return { per 阅读全文
posted @ 2013-09-07 20:51 chunchill 阅读(242) 评论(0) 推荐(0) 编辑
摘要: Knockout: Getting StartedProducts: 阅读全文
posted @ 2013-09-07 20:10 chunchill 阅读(313) 评论(0) 推荐(0) 编辑