var countrys = {
"newval":[{"Country_code":"101","Country_name":"中国"},
{"Country_code":"102","Country_name":"美国"}]
};
//增加
var c = {"Country_code":"103","Country_name":"英国"};
countrys.newval.push(c);//删除
delete countrys.newval[1];
"newval":[{"Country_code":"101","Country_name":"中国"},
{"Country_code":"102","Country_name":"美国"}]
};
//增加
var c = {"Country_code":"103","Country_name":"英国"};
countrys.newval.push(c);//删除
delete countrys.newval[1];
看看js对 对象,数组的操作就是了