var str = `abcdef` console.log(str);
var str = ` <tr> <td>令狐冲</td> <td>20</td> <td>独孤九剑</td> </tr> <tr> <td>任我行</td> <td>55</td> <td>吸星大法</td> </tr> ` console.log(str);
var a = 10; // var str = ‘小明今年才‘+a+‘岁,就想谈女朋友‘; var str = `小明今年才${a}岁,就想谈女朋友` console.log(str);
原文:https://www.cnblogs.com/mrxiachongyu/p/14278438.html