var str = "<h1 class='h1'>"+hello+"</h1>\
<ol>\
<li>a</li>\
<li>b</li>\
</ol>"
var str ="<h2>hello</h2>"
+"<li>world</li>";
es6
var str = `<h1 class="h1">${hello}</h1>
<ol>
<li>a</li>
<li>b</li>
</ol>`
网友评论