摘要:        
知识点:vue中使用props或者$attras向子组件中传值 (1) props传值 子组件必须注册好要传的数据() props:['id'] (2)$attrs传值 该数据在props中,没有注册过,如注册过了,则$attrs中无此数据 父组件: <template> <mychild :id=    阅读全文
posted @ 2019-05-15 17:00
shuaiflying
阅读(2786)
评论(0)
推荐(0)
        
            
        
        
摘要:        
知识点:vue.js中,父组件的method中,触发子组件中的方法,获得子组件中的定义的属性 (1)子组件 : child_crud.js    阅读全文
posted @ 2019-05-15 14:17
shuaiflying
阅读(3966)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号