Laravel中的Javascript全局问题

时间:2018-09-27 00:19:45

标签: javascript laravel

我在laravel中引用app.js文件时遇到2个错误,不知道为什么吗?

  1. Uncaught ReferenceError: $ is not defined

    refer to: <script> $(function () { $('[data-toggle="tooltip"]').tooltip() }); </script>

  2. Uncaught TypeError: Cannot call a class as a function

    refer to: function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); //here } }

PS:app.js文件将创建并合并来自node.js的所有资产。

问题

我该如何解决?

0 个答案:

没有答案