【发布时间】:2014-10-02 18:17:36
【问题描述】:
表格包含数字值,每个单元格都有自己的href。
如果我像这样应用href:
nTd.click(function(e){
$(this).css("font-weight","bold");
e.stopPropagation();
location.href = 'http://google.com';
});
每次点击单元格重定向窗口,我无法通过“ctrl + click”打开新标签。
如果我在TD 中添加类似'<a href="http://google.com"> 123123 </a>' 的内容,那么对数字值进行排序就会中断,按字典顺序排列。
【问题讨论】:
-
你为什么不说你的评论作为答案? @乔治
-
@George - 给你....jsfiddle.net/rntL9ngg/1
标签: javascript jquery html sorting lexicographic