var a = "";
foreach (var item in prs)
{
a += "<a onclick='openViewWin(\"" + item.LargePurchaseApplyTaskID + "\")' href='#'>" + item.LargePurchaseApplyNo + "</a>,";
}
htmlA.Value = HttpUtility.UrlDecode(a);
前台通过div用after接收
$("#lblNum").after($("#htmlA").val())
注:
1、单引号里面加双引号
2、openViewWin里面加上转译:"