<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>组件</title>
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js"></script>
</head>
<body>
<div ></tr>
</tbody>
</table>
</div>
<script>
Vue.component('row',{
data:function() {
return {
content:'this is content'
}
},
template:'<tr><td>{{content}}</td></tr>'
});
var vm=new Vue({
el:'#root'
})
</script>,
</body>
</html>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-19
  • 2022-12-23
  • 2021-08-18
  • 2021-11-30
  • 2022-01-11
猜你喜欢
  • 2022-12-23
  • 2021-10-16
  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-12
相关资源
相似解决方案