javascript for循环中函数怎么获取值
success:function(data){varevalData=eval('('+data+')');for(vari=0;i<evalData.length;i+...
success : function(data) {
var evalData = eval('('+data+')');
for(var i = 0; i < evalData.length; i++) {
$('#navigation').accordion('add', {
id : evalData[i].id,
title: evalData[i].techniqueGroupName,
//1 content : function() {
var content = "";
for(var j = 0; j < evalData[i].techniques.length; j++) {
content += '<a href="javascript:void(0);" id="' +
evalData[i].techniques[j].id +
'" class="navigationName" onclick=clickShow("' +
evalData[i].techniques[j].techniqueName + '","' +
evalData[i].techniques[j].url + '?tech.id=' + evalData[i].techniques[j].id + '")>' +
evalData[i].techniques[j].techniqueName +
'</a></p>';
}
return content;
},
selected: false
});
}
}
1位置的function 怎么获得evalData[i]的值? 展开
var evalData = eval('('+data+')');
for(var i = 0; i < evalData.length; i++) {
$('#navigation').accordion('add', {
id : evalData[i].id,
title: evalData[i].techniqueGroupName,
//1 content : function() {
var content = "";
for(var j = 0; j < evalData[i].techniques.length; j++) {
content += '<a href="javascript:void(0);" id="' +
evalData[i].techniques[j].id +
'" class="navigationName" onclick=clickShow("' +
evalData[i].techniques[j].techniqueName + '","' +
evalData[i].techniques[j].url + '?tech.id=' + evalData[i].techniques[j].id + '")>' +
evalData[i].techniques[j].techniqueName +
'</a></p>';
}
return content;
},
selected: false
});
}
}
1位置的function 怎么获得evalData[i]的值? 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询