最佳答案
我想用 Vue.js 创建一个包含 label和 input的组件,例如:
<label for="inputId">Label text</label>
<input id="inputId" type="text" />
如何为每个组件实例设置唯一的 ID?