<div v-bind:id="name"></div> //v-bind:id="变量" or :id="变量" 转载于:https://www.cnblogs.com/lanshu123/p/10693590.html