我想为 bootstrap-table 中的列添加链接.这个怎么做?
最佳答案
在您的 HTML 表格中:
<th data-field="snum" data-formatter="LinkFormatter">Computer</th>
在你的 javascript 中:
function LinkFormatter(value, row, index) {
return "<a href='"+row.url+"'>"+value+"</a>";
}
关于twitter-bootstrap - 在 Bootstrap 表中添加链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27819208/