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