1.array函数:和原生的JavaScript中的数组遍历方法forEach方法用法相同
define(['dojo/_base/declare', "dojo/_base/array"], function (declare,array) { var instance = declare(null, { }); instance.subscribe = function () { var arr=[{"1":1},{"2":2},{"3":3}]; array.forEach(arr,function (cmd) { //执行操作 }); } return instance; })