我在laravel中引用app.js
文件时遇到2个错误,不知道为什么吗?
Uncaught ReferenceError: $ is not defined
refer to:
<script>
$(function () {
$('[data-toggle="tooltip"]').tooltip()
});
</script>
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的所有资产。
我该如何解决?