摘要:        
假设这是父组件 father <template> <div> <Child /> </div> </template> <script> import Child from './child' export default { components:{ Child }, data() { retu    阅读全文
posted @ 2021-02-23 15:03
zoo-x
阅读(203)
评论(0)
推荐(0)
        
            
        
        
摘要:        
vue中的dom更新是异步的,参考下面的例子: <template> <div> <div style="width: 20vw; height: 10vw; border: 1px solid #000000" @click="updateData" ref="box" > {{ msg }} <    阅读全文
posted @ 2021-02-23 14:26
zoo-x
阅读(63)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号