var rowIndex = e.rowIndex; 
var t = "<a href='javascript:void(0)' onclick=\"viewInfo('" + rowIndex + "','" + '温度' + "')\">" + t + "</a> ";
var t = "<a href='javascript:void(0)' onclick=\"viewInfo('" + rowIndex + "','温度')\">"+t+"</a> "
var t = "<a href='javascript:void(0)' onclick=\"viewInfo('" + rowIndex + "','" + "温度" + "')\">" + t + "</a> ";
解析后:
"<a href='javascript:void(0)' onclick="viewInfo('1','温度')">27</a> "
var t = "<a href='javascript:void(0)' onclick='viewInfo(\"" + rowIndex + "\",\"" +'温度'+ "\")'>" + t + "</a> ";
var t = "<a href='javascript:void(0)' onclick='viewInfo(\"" + rowIndex + "\",\"" +"温度"+ "\")'>" + t + "</a> ";
var t = "<a href='javascript:void(0)' onclick='viewInfo(\"" + rowIndex + "\",\"温度\")'>" + t + "</a> ";
解析后:
var t = "<a href='javascript:void(0)' onclick='viewInfo("0","温度")'>72</a> "
05-11 18:29