vue的报错
报错A space is required after ‘,’Extra semicolonExpected indentation of 2 spaces but found 4Expected space or tab before '*/' in commentExpected an assignment or function call and instead saw an express
·
报错
- A space is required after ‘,’
- Extra semicolon
- Expected indentation of 2 spaces but found 4
- Expected space or tab before '*/' in comment
- Expected an assignment or function call and instead saw an expression
- Identifier 'sys_val' is not in camel case
- key-spacing
- Missing space before value for key 'methods'
- Missing space before function parentheses
- More than 1 blank line not allowed
- Newline required at end of file but not found
- no-unused-vars
- 'sys_val' is assigned a value but never used
- space-before-blocks Missing space before opening brace
- The "data" option should be a function that returns a per-instance value in component definitions.
- Unexpected space between function name and paren
- Unexpected trailing comma
- Trailing spaces not allowed
A space is required after ‘,’
在,后面要加空格
Extra semicolon
额外分号
Expected indentation of 2 spaces but found 4
所有缩进只能用两个空格
Expected space or tab before ‘*/’ in comment
注释中“*/”前应有空格或制表符
Expected an assignment or function call and instead saw an expression
应为赋值或函数调用,但看到的却是表达式
Identifier ‘sys_val’ is not in camel case
标识符不是驼峰大小写
key-spacing
对象字面量中冒号的前后空格
Missing space before value for key ‘methods’
在关键字“值”之前缺少空格
Missing space before function parentheses
函数括号前缺少空格,方法名和括号之间加个空格
More than 1 blank line not allowed
不允许有多个空行
Newline required at end of file but not found
在最后的后面再加一行
no-unused-vars
不能有声明后未被使用的变量或参数
‘sys_val’ is assigned a value but never used
xx被指定了一个值,但从未使用过
space-before-blocks Missing space before opening brace
关键字后面要空一格
The “data” option should be a function that returns a per-instance value in component definitions.
// 报错
data: {
current: tp.current
}
// 解决
data () {
return {
current: tp.current
}
}
Unexpected space between function name and paren
函数名和paren之间有意外的空格
Unexpected trailing comma
多余的尾随逗号
Trailing spaces not allowed
不允许尾随空格
更多推荐
已为社区贡献1条内容
所有评论(0)