我遵循本網站的引導表的屬性:http://bootstrap-table.wenzhixin.net.cn/documentation/如何設置默認取消選中引導表中的所有項目?
表看起來不錯,但是當我第一次加載頁面時,checkall項被檢查。我想在默認情況下取消選中它。
這裏是我的初始化代碼:
var init = function (elmId) {
try {
var tbId = "#table-select-controlli_" + elmId;
var h2Id = "#header_" + elmId;
var btnId = "#btn-aggiungi_" + elmId;
var gridId = "#grid-box_" + elmId;
var langcode = mifid.utils.getLangCode();
listName = $(gridId + " input")[0].value;
//loadData();
$(tbId).bootstrapTable(
{
showRefresh: true,
showColumns: true,
pagination: true,
search: true,
pageList: [10, 25, 50, 100],
sidePagination: 'server',
queryParams: 'getparams',
locale: langcode,
columns: [{
field: fieldName.Modulo,
title: fieldDisplay.Modulo
}, {
field: fieldName.Titolo,
title: fieldDisplay.Titolo
}, {
field: fieldName.AmbitoControllo,
title: fieldDisplay.AmbitoControllo
}],
url: _spPageContextInfo.webAbsoluteUrl + "/_vti_bin/MIFIDServices/SelectControlliService.svc/Getdata?listName=" + encodeURIComponent(listName) + "&siteurl=" + _spPageContextInfo.webAbsoluteUrl,
cache: false,
});
$(h2Id).text(listName);
RegisterEvent(tbId);
}
catch (e) {
console.log(e.message);
}
}
爲什麼你不接受現在接受??? ???' –