亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

如何在Vue.js中正確包含購買的主題中的腳本

如何在Vue.js中正確包含購買的主題中的腳本

森林海 2021-04-09 13:11:33
最近,我從Themeforest(Keen)購買了主題,并試圖在Vue.js應用程序中包含該主題的腳本,但是這些腳本會引發錯誤。我在App.vue模板使用“導入”試圖進口這些腳本,嘗試包括通過腳本標簽的腳本public.html,嘗試包括通過main.js腳本使用document.createElement(“腳本”) 。jQuery出現問題,但我通過npm安裝并包含在main.js中來解決該問題,因此Bootstrap的腳本實際上可以正常工作。有錯誤,哪些腳本拋出了我:app.bundle.js:4 Uncaught ReferenceError: KTUtil is not defined    at app.bundle.js:4    at app.bundle.js:66jquery.js?1157:3850 Uncaught TypeError: Cannot read property 'initMediumChart' of undefined    at mediumCharts (dashboard.js:11)    at Object.init (dashboard.js:952)    at HTMLDocument.<anonymous> (dashboard.js:972)    at mightThrow (jquery.js?1157:3557)    at process (jquery.js?1157:3625)fullcalendar.bundle.js:1327 Uncaught TypeError: Cannot read property 'fn' of undefined    at Object.<anonymous> (fullcalendar.bundle.js:1327)    at __webpack_require__ (fullcalendar.bundle.js:35)    at Object.<anonymous> (fullcalendar.bundle.js:4820)    at __webpack_require__ (fullcalendar.bundle.js:35)    at Object.<anonymous> (fullcalendar.bundle.js:2045)    at __webpack_require__ (fullcalendar.bundle.js:35)    at Object.<anonymous> (fullcalendar.bundle.js:14373)    at __webpack_require__ (fullcalendar.bundle.js:35)    at fullcalendar.bundle.js:78    at fullcalendar.bundle.js:81Uncaught ReferenceError: PerfectScrollbar is not defined    at init (scripts.bundle.js:1448)    at Object.scrollInit (scripts.bundle.js:1462)    at HTMLDivElement.<anonymous> (scripts.bundle.js:1600)    at Function.each (jquery.js?1157:367)    at jQuery.fn.init.each (jquery.js?1157:202)    at initScroll (scripts.bundle.js:1598)    at Object.initComponents (scripts.bundle.js:1659)    at Object.init (scripts.bundle.js:1655)    at HTMLDocument.<anonymous> (scripts.bundle.js:1820)    at mightThrow (jquery.js?1157:3557)我希望所有腳本都能正常工作,并且看起來像這個演示:https : //keenthemes.com/keen/preview/demo4/index.html但是實際上只有jQuery和Bootstrap起作用。在我看來,它是可以修復的,但是我不知道如何。
查看完整描述

1 回答

  • 1 回答
  • 0 關注
  • 186 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號