标签:href cell 错误 ref div 字符串 浏览器 alt span
1、将行变成超连接如下所示
name: "CurrentScore", index: "CurrentScore", width: 80, align: "center", formatter: function (cellValue, options, rowdata, action) { return "<a href=‘#‘ onclick=" + "ScoreDetail(‘" + rowdata.PassportNumber + "‘)" + ">考核详情</a>"; }
2、解析成的超连接如下所示
function Trim(str) { return str.replace(/(^\s*)|(\s*$)/g, ""); }
标签:href cell 错误 ref div 字符串 浏览器 alt span
原文地址:https://www.cnblogs.com/zhengwei-cq/p/9472357.html