fly*_*y.x 10 javascript vue.js
每当我像这样$ {row.name}编码时,我得到这个错误"eslint.org/docs/rules/no-template-curly-in-string意外的模板字符串表达式".
有帮助吗?
pau*_*lgv 22
ES6模板字符串应与反引号一起使用,而不是单引号.替换这个:
'delete the item ${row.name}'
Run Code Online (Sandbox Code Playgroud)
有了这个 :
`delete the item ${row.name}`
Run Code Online (Sandbox Code Playgroud)
以下是评论中要求的ESLint示例:http://eslint.org/docs/rules/no-template-curly-in-string#examples