//匿名替换函数
function objFunc() {
var obj = new Object();
obj.JsonData = [{ aa: "", bb: "" }, { aa: "", bb: ""}],
obj.FilterData = function (func) {
doFilter = func;
};
doFilter = function (ListData) { };
obj.doIt = function () {
doFilter(obj.JsonData);
alert(obj.JsonData[].aa);
}
return obj;
}
var obj = new objFunc();
obj.FilterData(function (JsonData) {
JsonData[].aa = "cc";
});
obj.doIt();