0
//这里是模板绑定的JavaScript什么是将模板绑定到html的正确方法?
<script type="text/javascript">
var template=document.getElementById("#template");
var clone=document.importNode(template.content,true);
var host=document.getElementById("#host");
host.appendChild(clone);
</script>
//这是模板..我尝试使用 '模板' 标签中的HTML DOM
太<script typ="text/template" id="template">
<p>from the template</p>
</script>
//主机模板
<div id="host">
<p>inside the host</p>
</div>