摘要: 基础知识:javascript对象:var mayHash={ str_att:"a temp", int_att:7, bool_att:false, undefined_att:null, hash_att:{}, fun_att:function(){}};模拟类与继承》javascript是一门基于对象的语言,对象可以继承自其他对象,但是javascript采用的是基于原型的继承机制:1.dojo定义简单类: 1 dojo.declare( 2 "Shape",//类名 3 null,//无父类,为null 4 { 5 color: ... 阅读全文
posted @ 2014-03-24 17:29 H·T·K 阅读(219) 评论(0) 推荐(0) 编辑