var box = ` <div> {{item}} </div> ` var item = ` <div>{{data}}</div> ` for(var i =0;i<10;i++){ item.replace("{{data}}",i); } //如何使item循环10次后插入到box,最后输出box的完整html