Template Literals not working if scripts are injected

前端 未结 0 1003
小蘑菇
小蘑菇 2020-11-28 07:28

Following code works fine in normal js page

 var expression = "test";
    var test= `String text ${expression}`;
    console.log(test);
相关标签:
回答
  • 消灭零回复
提交回复
热议问题