in the project, request background data through ajax and do data processing. Finally, the processed data will be returned. The code looks like this:
function funOne(){
var htmlStr = "";
$.get(href,{},function(r){
var data = eval("(" + r + ")");
$.each(data,function(k,v){
/* */
htmlStr += "<div>" + v + "</div>";
})
})
return htmlStr;
}
ajax
while