Const {todo, index}=this
The console. The log (' confirm delete ${todo. Item}? ')
Don't understand where is the place where in printing confirm delete ${} syntax for your guidance, in the way it is to belong to what the language of the framework, thank you,
CodePudding user response:
This is the new syntax, ES6 + string formatting, and should be under the keyboard ESC that like single space mark is valid (others, such as single or double quotes including when not work)CodePudding user response:
https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/template_strings