props双向绑定?v-bind.sync=''
摘要:<template> <div> <children v-bind:title.sync="title"/> </div> </template> <script> export default { data(){ return{ title:"学习vue" } } } </script> 子组件:
阅读全文
posted @ 2022-06-15 14:55
posted @ 2022-06-15 14:55
posted @ 2022-06-15 14:36
posted @ 2022-06-01 17:15
posted @ 2022-06-01 15:37