Inserting if statement inside ES6 template literal

后端 未结 5 1804
慢半拍i
慢半拍i 2021-02-01 16:15

I have a simple ajax request returning some data and then inserting into a template literal. I was wondering if it it possible to insert an \'if\' statement inside the template?

5条回答
提交回复
热议问题