用反引号
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>
// es6
var myhtml = `<li>11111</li>
<li>33333</li>
<li>444444</li>`
var myname = "bob"
// var str = `my name is `+myname
var str = `my name is ${myname} ${10+20}`
document.write(str)
</script>
</body>
</html>