从后端拿取数据渲染到表格数据。结果明明写的没错,但是却报错,那肯定还是那里错了。????
vue.runtime.esm.js?2b0e:619 [Vue warn]: Error in created hook: "TypeError: Object(...) is not a func
定位到代码中。
vue.runtime.esm.js?2b0e:619 [Vue warn]: Error in created hook: "TypeError: Object(...) is not a func
引入后端接口
vue.runtime.esm.js?2b0e:619 [Vue warn]: Error in created hook: "TypeError: Object(...) is not a func
没错,问题就是引入的时候出错,要改成
vue.runtime.esm.js?2b0e:619 [Vue warn]: Error in created hook: "TypeError: Object(...) is not a func
引入的这个js,要用大括号包起来,不然就被当作方法调用,所以就会报错的呀

相关文章:

  • 2022-12-23
  • 2021-06-24
  • 2022-12-23
  • 2022-12-23
  • 2021-10-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
  • 2021-12-10
  • 2021-04-03
  • 2022-12-23
相关资源
相似解决方案