在IDEA中对如下标签进行修改:File->settings->Languages & Frameworks->JavaScript 中的参数JavaScript language version更改为ECMAScript 6,apply之后即可使用ES6语法。刚安装idea后,导入项目,资源文件无法从当前页跳转至资源文件同时提示cannot find declaration to go to
步骤一:主页左上角file——打开Project Structure
步骤二:展开项目下的静态资源找到js文件moduleexports = {
/
Headers of the page
/
head: {
title: 'front',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport',content:'width=device-width, initial-scale=1' },
{ hid: 'description',name:'description',content:'nwy blog front' }
],
link: [
{ rel: 'icon',type:'image/x-icon',href:'/faviconico' }
]
},
css:[
{src:'element-ui/lib/theme-chalk/indexcss'}
],
/
Customize the progress bar color
/
loading: { color:'#3B8070' },
plugins: [{src:'~plugins/element-ui',ssr: false}],
/
Build configuration
/
build: {
vendor: ['element-ui']
}
}1下载eclipse-formatterxml文件,放到eclipse安装目录下 2Eclipse中,选择Windows->Preferences->code style 3选择 Formatter 选择Import,找到eclipse-formatterxml的文件目录,选择该文件,选择OK导入。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)