用了$.noConflict(true)后,bootstraptable 导出失效

lubridge 2020-08-12 05:05:09
为了防止页面引入的jquery版本冲突,var $jQuery_edit = $.noConflict(true);然后用$jQuery_edit代替原来的$,其它所有功能都正常,但是table导出失效了!

<button type="button" class="" id="btnExport">导出</button>

下面是导出功能的js:
//导出
function tableExport(){

$jQuery_edit('#tb_user_edit').tableExport(
{
type: 'excel',//导出excel
escape: 'false' ,
ignoreColumn: [0], //忽略某一列的索引
fileName: '母猪档案', //文件名称设置
worksheetName: 'sheet1', //表格工作区名称
tableName: '母猪档案',
excelstyles: ['background-color', 'color', 'font-size', 'font-weight']
}
)
}
$jQuery_edit$('#btnExport').bind('click', function () {


tableExport();
})

不知道是什么原因了,请教各位大侠!
...全文
4316 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
lubridge 2020-08-18
  • 打赏
  • 举报
回复
回来顶一下!!!

87,903

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧