我试图在NUXT中附加javascript文件。但是,当我使用nuxt.config附加javascript时,它可以正常运行,但不如我所愿。
head: {
title: 'mynuxt',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'Nuxt.js project' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{ rel: 'stylesheet', href: 'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' },
{ rel: 'stylesheet', href: '/css/bootstrap.min.css' },
{ rel: 'stylesheet', href: '/css/mdb.min.css' },
{ rel: 'stylesheet', href: '/css/style.min.css' },
],
script: [
{ src: '/js/bootstrap.min.js' },
{ src: '/js/popper.min.js' },
{ src: '/js/mdb.min.js' }
],
},
香港专业教育学院搜索已经在谷歌,但尚未找到任何解决方案。提前致谢
解决方法 https://jingzhisheng.cn/blog/detail/1404673151476043776