Finishing a Vue.js issues related methods, mounted method of use

1.methods:

Listen for the click event

methods:{

      clickFunction:function(){

      }

}

2.mounted:

Page initialization method

mounted(){ 

}

The execution order is the parent component sub-assemblies ---

3.props:

Receive data from the parent element

props: {
   seller: {
        type: Object
    }
}

Guess you like

Origin www.cnblogs.com/memymineblogs/p/11612513.html