boostrap-table关于IE,低版本的chrome新出现“对象不支持“bootstrapTable”属性或方法”的错误

luoz_python 2018-05-05 05:11:28
包引用如下:
<!--css样式-->
<link href="../static/bootstrap/css/bootstrap.min.css" rel="stylesheet"/>
<link href="../static/bootstrap-table.css" rel="stylesheet"/>
<!--js-->
<script src="../static/jquery-3.3.1.min.js"></script>
<script src="../static/bootstrap/js/bootstrap.min.js"></script>
<script src="../static/bootstrap-table.js"></script>
<script src="../static/bootstrap-table-zh-CN.js"></script>

使用如下
<script type="text/javascript">
function maketable(ajax_flag) {
$("#table").bootstrapTable('destroy');
$('#table').bootstrapTable({});
}

在 $("#table").bootstrapTable('destroy');处即报错。

所引用的包均能正确找到,出现的问题的IE包括IE11,IE9,谷歌浏览器在新内核下正确显示。
...全文
614 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
935039168 2019-10-24
  • 打赏
  • 举报
回复
引用 5 楼 hackermaster 的回复:
[quote=引用 3 楼 935039168 的回复:]
[quote=引用 2 楼 msz321 的回复:]
引入 <script src="https://cdnjs.cloudflare.com/ajax/libs/core-js/2.6.2/core.min.js"></script>就可以了。
参见 https://bootstrap-table.com/docs/getting-started/introduction/#starter-template

亲测可用,感谢大牛[/quote]大佬 我引入了这个js文件还是报错 请问你是怎么解决的 能贴一下引入资源文件的代码么[/quote]

src属性里面就是地址啊,https://cdnjs.cloudflare.com/ajax/libs/core-js/2.6.2/core.min.js,浏览器直接访问就看到了
hackermaster 2019-10-15
  • 打赏
  • 举报
回复
引用 3 楼 935039168 的回复:
[quote=引用 2 楼 msz321 的回复:] 引入 <script src="https://cdnjs.cloudflare.com/ajax/libs/core-js/2.6.2/core.min.js"></script>就可以了。 参见 https://bootstrap-table.com/docs/getting-started/introduction/#starter-template
亲测可用,感谢大牛[/quote]大佬 我引入了这个js文件还是报错 请问你是怎么解决的 能贴一下引入资源文件的代码么
935039168 2019-06-13
  • 打赏
  • 举报
回复
引用 2 楼 msz321 的回复:
引入 <script src="https://cdnjs.cloudflare.com/ajax/libs/core-js/2.6.2/core.min.js"></script>就可以了。
参见 https://bootstrap-table.com/docs/getting-started/introduction/#starter-template

亲测可用,感谢大牛
msz321 2019-02-15
  • 打赏
  • 举报
回复
引入 <script src="https://cdnjs.cloudflare.com/ajax/libs/core-js/2.6.2/core.min.js"></script>就可以了。 参见 https://bootstrap-table.com/docs/getting-started/introduction/#starter-template
苏颙 2018-05-08
  • 打赏
  • 举报
回复
在这个页面添加检测,如果客户是ie则跳转到下载谷歌浏览器页面

87,955

社区成员

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

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