标签:html 若是 ble obj cti list 循环 ret body
<template v-for="item in list"> <div>{{item}}</div> </template>
<body> <div id="app"> <table> <tbody> <tr is="row"></tr> <tr is="row"></tr> <tr is="row"></tr> </tbody> </table> </div> <script> Vue.component("row",{ template:"<tr><td>this is row</td></tr>" }); var app = new Vue({ el:‘#app‘, }) </script> </body>
Vue.component("row",{ data:function(){ return { content:"this is row" } }, template:"<tr><td>{{content}}</td></tr>" });
标签:html 若是 ble obj cti list 循环 ret body
原文地址:https://www.cnblogs.com/feiyangyao/p/11161230.html