factory 发表于 2013-10-10 17:29
你可以试试这样,不要放到数组,放到一个对象中
var obj = {
题目1:"1",
function test () {
var data={};
data.tm1={ID:1,KSDA:"A",FLAG:"Y",FLAG_BZ:"123"};
data.tm2={ID:2,KSDA:"B",FLAG:"Y",FLAG_BZ:"12344"};
data.tm3={ID:3,KSDA:"C",FLAG:"Y",FLAG_BZ:"5t23sd"};
data.tm4={ID:4,KSDA:"D",FLAG:"N",FLAG_BZ:"ffff"};
mini.alert(data.tm1.KSDA);
mini.alert(mini.encode(data));
}