var title = '你好'
ES5
var tpl1 = '<div>' +
'<span>' + title + '</span>'
'</div>'
ES6
var tpl2 = `
<div>
<span>${title + `
<span>${1234} 2016</span>
`}</span>
</div>
`
2024-03-18 23:11:22
var title = '你好'
ES5
var tpl1 = '<div>' +
'<span>' + title + '</span>'
'</div>'
ES6
var tpl2 = `
<div>
<span>${title + `
<span>${1234} 2016</span>
`}</span>
</div>
`