我使用tabulator制作表格,数据如下:
let arr = [
{
title: "<a href="http://vc.io/2053.html" title="测试文章111测试文章111测试文章111测试文章111测试文章111测试文章111测试文章111测试文章111">测试文章111测试文章111测试文章111测试文章111测试文章111测试文章111测试文章111测试文章111</a>",
created: "2021-09-20 15:51:20",
modified: "2024-01-11 17:22:54"
},
{
title: "<a href="http://vc.io/1393.html" title="code2">code2</a>",
created: "2022-03-07 08:58:20",
modified: "2023-09-21 11:43:47"
}
]
// 创建实例
let Tabulator = new Tabulator("#datatable-table,{
locale: "default", // 语言环境
height: 'auto', // 高度
layout: "fitDataFill",
columns: [
{
"title": "标题",
"field": "title",
"headerSort": false,
"headerHozAlign": "left",
"hozAlign": "left",
"formatter": "html",
"headerFilter": "list",
"headerFilterParams": {
"valuesLookup": true,
"clearable": true
},
"minWidth": "200"
},
{
"title": "发布",
"field": "created",
"headerSort": false,
"headerHozAlign": "left",
"hozAlign": "left",
"formatter": "html",
"headerFilter": "input",
"operator": "like"
},
{
"title": "更新",
"field": "modified",
"headerSort": false,
"headerHozAlign": "left",
"hozAlign": "left",
"formatter": "html",
"headerFilter": "list",
"headerFilterParams": {
"valuesLookup": true,
"clearable": true
}
}
],
data: arr,
pagination: false,
paginationMode: 'local',
})
创建好的例子如下:
点击列表文字会跳转页面,我该怎么禁止跳转呢?