1. 用bower更新bootstrap-table到1.12.0版本(更新的版本不兼容,或者之前往github下载1.11.1版本的extend也行)
bower.json修改为:
{
"dependencies": {
"bootstrap-table": "~1.12.0"
}
}
执行命令:bower update bootstrap-table
注:如果根目录没有定义.bowerrc,需创建
{
"directory" : "public/assets/libs",
"ignoredDependencies": [
"file-saver",
"html2canvas",
"jspdf",
"jspdf-autotable"
]
}
github链接:https://github.com/wenzhixin/bootstrap-table/tree/6a60a3643bbbc11aaa591f34dfc9fa6eda60706c/src/extensions/page-jumpto
2. 增加后台加载js配置require-backend.js的项
require.config({
paths: {
'bootstrap-table-page-jumpto': '../libs/bootstrap-table/dist/extensions/page-jumpto/bootstrap-table-jumpto',
},
// shim依赖配置
shim: