我已尝试禁用鼠标中键点击链接。后续代码
$(selector).on('click', function(e) {
if(e.which == 2) {
e.preventDefault();
}
});
这在chrome中运行良好。但在Firefox中不起作用。
请帮助。
答案 0 :(得分:0)
var logDetails = (from c in db.ts_upldlog_content
join tbl in db.ts_upld_doc on c.upld_docid equals tbl.upld_docid
join doc in db.tm_doc_type on tbl.upld_doctypeid equals doc.doc_typeid
where c.upld_docid == data
group c by new { c.upld_contentlabel, c.updateOn } into grouping
select new logdetails
{
updatedOn = c.Key.updateOn,
contentLabel = grouping.Key.upld_contentlabel,
oldValue = grouping.FirstOrDefault(x => x.commited ==false).upld_contentvalue,
newValue = grouping.FirstOrDefault(x => x.commited == true).upld_contentvalue,
}).ToList();
这对我有用。请试试这个。希望它有所帮助!!