<script>
var
json = [{dd:
'SB'
,AA:
'东东'
,re1:123},{cccc:
'dd'
,lk:
'1qw'
}];
for
(
var
i=0,l=json.length;i<l;i++){
for
(
var
key
in
json[i]){
alert(key+
':'
+json[i][key]);
}
}
</script>
function setQueryVal() {
var argsObj={id:@ViewBag.RssTaskId}
postBackCurrent("GetTask", argsObj, function (json) {
if (json!=""&&json.RptParams!="") {
JSON.parse(json.RptParams, function (key, value) {
if (key=="_endDate"||key=="_beginDate") {
var year=value.toString().substring(0,4);
var mouth=value.toString().substring(4,6);
var day=value.toString().substring(6,8);
var time=year+"-"+mouth+"-"+day;
$("#"+key+"").val(""+time+"")
}else
{
if (value!=null&&value!=""&&typeof(value)!="object") {
var result= value.split(",");
for(var i=0;i<result.length;i++){
if (result[i]!=null&&libUIUtils.getUIObj("ui_0_"+key)!=null) {
libUIUtils.getModelUIObj(0,key).setValue(result[i]);
libUIUtils.getUIObj("ui_0_"+key).setValue(result[i]);
}
}
}
}
})
}
});
}*@