Why does not js code work on any version of IE?
Code:
var titleSearch = ` <div class="row"> <div class="col-sm-6"> <div class="page-title"> <h1>Поиск <small>`+ quantityProduct +`</small></h1> </div> </div> </div> `; Why does not js code work on any version of IE?
Code:
var titleSearch = ` <div class="row"> <div class="col-sm-6"> <div class="page-title"> <h1>Поиск <small>`+ quantityProduct +`</small></h1> </div> </div> </div> `; PS
I decided to make a question and answer because I had to kill for several days in search of an answer (and then changed everything into quotes for another couple of days), I hope it will be useful to someone. (If there is another solution, I will be happy to answer in the comments).
IE does not support wildcard ``.
All code that contains similar `characters will have to be rewritten into quotes and concatenation (addition, example:" Hello "+" world! ") .
Decision:
var titleSearch = '<div class="row">' + '<div class="col-sm-6">' + '<div class="page-title">' + '<h1>Поиск <small>(Всего 1 товар)</small></h1>' + '</div>' + '</div>' + '</div>'; Source: https://ru.stackoverflow.com/questions/819507/
All Articles