Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
Koma 79b1bb8c11 | 6 years ago | |
---|---|---|
.. | ||
README.md | 6 years ago | |
index.html | 7 years ago |
slot是父组件与子组件的通讯方式,可以将父组件的内容显示在子组件当中。
<div id="myApp">
<say-to pname="koma">
你的视频做的太差了。
</say-to>
<say-to pname="mike">
你千万不要学koma。
</say-to>
<say-to pname="john">
你教教他们两个吧。
</say-to>
</div>
<script>
Vue.component('say-to', {
props: ['pname'],
template: '<div>'
+ '你好,<strong>{{pname}}</strong>!'
+ '<slot></slot>'
+ '</div>',
});
var myApp = new Vue({
el: '#myApp',
});
</script>
Vue.js学习工程
HTML CSS Markdown
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》