1
我已经创建的类查找对象的数组对象具有相同的ID
dojo.declare("UNIT",null,{
_id:'',
constructor:function(i){
this._id=i;
});
和
dojo.declare("ELEMENT", null, {
_id:'',
_unit_id:'',
constructor:function(u,i){
this._unit_id=u;
this._id=i;
});
我单位的阵列,我想找到一个具有ID喜欢我element._unit_id。用Dojo做这件事很热吗?我正在查看文档示例,但有dojo.filter我无法传递参数。任何人都可以帮忙吗?
你什么时候开始阅读道场的文档,而不是请求的基本问题,循环顺序? – 2011-03-25 05:07:17