const oBox = document.querySelector('.box')
let id = 2;
oBox.innerHTML = `<div id=${id}> haha</div>`
类似占位符
模板字符串:使用tab键上的反引号``,插入变量时使用${变量名}