<!DOCTYPE html><htmllang="en"><head><metacharset="UTF-8"><title>组件使用注意点</title><scriptsrc="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script></head><body><divid="root"><table><tbody>
//使用is解决bug
<tris="row"></tr><tris="row"></tr><tris="row"></tr></tbody></table></div><script>
Vue.component('row',{
template:'<tr><td>this is a row</td></tr>'
});
let vm = new Vue({
el:'#root'
})
</script></body></html>