每次我像${row.name}这样编写代码时,都会出现以下错误:"eslint.org/docs/rules/no-template-curly-in-string意外的模板字符串表达式".
有什么帮助吗?
ES6模板字符串应该与反引号一起使用,而不是单引号.
'delete the item ${row.name}'
有了这个:
`delete the item ${row.name}`
下面是 comments 中要求的ESLint示例:http://eslint.org/docs/rules/no-template-curly-in-string#examples
Vue开发实战 -〔唐金州〕
许式伟的架构课 -〔许式伟〕
Web协议详解与抓包实战 -〔陶辉〕
Elasticsearch核心技术与实战 -〔阮一鸣〕
微信小程序全栈开发实战 -〔李艺〕
跟月影学可视化 -〔月影〕
大厂晋升指南 -〔李运华〕
如何落地业务建模 -〔徐昊〕
去无方向的信 -〔小麥〕
B端体验设计入门课 -〔林远宏(汤圆)〕
零基础GPT应用入门课 -〔林健(键盘)〕
云时代的JVM原理与实战 -〔康杨〕
无涯教程 - JavaScript教程
无涯教程 - Python2教程
无涯教程 - Derby教程
无涯教程 - Swift教程
无涯教程 - Spring Boot教程
无涯教程 - Git教程
无涯教程 - TCP/IP网络编程教程
无涯教程 - C# 代码整洁指南教程