var html = "";
html += "<ul class=\"ulFCon\" id=\"j_FocusCon\">";
for(var item in result.data.map["projectNames"].list){
html += "<li>" +
"<div class=\"projectName\">" + "${projectName}" + "</div>" +
"<div class=\"b\">" + "<div id=\"${projectName.replaceAll(' ','').replaceAll('-', '')}c1\">" + "</div></div>" +
"<div class=\"b\">" + "<div id=\"${projectName.replaceAll(' ','').replaceAll('-', '')}c2\">" + "</div></div>" +
"<div class=\"b\">" + "<div id=\"${projectName.replaceAll(' ','').replaceAll('-', '')}c3\">" + "</div></div>" +
"</li>";
}
html = html + "</ul>";
$(".focusM").html(html);
JS取Map值
最新推荐文章于 2024-08-25 10:54:04 发布