记录一个bootstrap因js加载顺序导致的问题(tstrap-table-mobile.min.js:7 Uncaught TypeError: Cannot read property 'defaults' of undefined)

问题描述:

网上找了会没看到答案,然后看了下源码,发现也没有问题,想到js加载的顺序,改了下,发现问题没了。

正确的顺序:

我之前把

<script src="/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
放到了最上面。
原文地址:https://www.cnblogs.com/yw-ah/p/9542240.html