<body>
<div id="app">
<my-component inline-template>
<div>
<p>这些将作为组件自身的模板</p>
<p>而非父组件透进来的内容</p>
</div>
</my-component>
</div>
<script>
Vue.component(‘my-component‘,{
})
new Vue({
el:‘#app‘
})
</script>
</body>
原文:http://www.cnblogs.com/ItIsInteresting/p/7747719.html