标签:java 基础
业务需求:
解决方案:
$td7=$("<td align=‘center‘ valign=‘middle‘><a href=‘javascript:findyId("+yejis[1]+",""+yejis[2]+"")‘ class=‘fsize12‘>查看目标</a></td>");
function findyId(id,names){
$("#showul").html("");
$("#names").html("");
$.post("yyryActions!showMb.action",{"yyryid":id},function(data){
var $li ;
$.each(data,function(i,mbblist){
if(null==mbblist.chenggyuf){
$li=$("<li>"+mbblist.createTime.substring(0,10)+" "+mbblist.mbbJrimbiao+" <span style= ‘color:green;font-weight:bold;‘>加油\t加油</span></li>");
}
if(mbblist.chenggyuf==1){
$li=$("<li>"+mbblist.createTime.substring(0,10)+mbblist.mbbJrimbiao+"<span style=‘font-weight:bold;‘>目标成功</span></li>");
}
if(mbblist.chenggyuf==2){
$li=$("<li>"+mbblist.createTime.substring(0,10)+mbblist.mbbJrimbiao+"<span style=‘color:black;font-weight:bold;‘>目标失败</span></li>");
}
$("#showul").append($li);
});
$("#names").append(names);
});
}
java jquery 函数多参数传递,布布扣,bubuko.com
标签:java 基础
原文地址:http://blog.csdn.net/u011598529/article/details/30500641