Small program-component knowledge, prompt box, method when sending a request, loading rotation, pop-up prompt box, life cycle

When calling an interface method

to rotate

 

pop-up prompt box

 

Application life cycle of life cycle - written in app.js

Page life cycle--js files written in the page

Custom Components - Category - Partial Components

Custom Components - Category - Global Components

Custom Components - properties and methods used in components

The difference between properties passing parameters and data

Custom Component - Listener - Basic Usage 

Custom Components - Listener - Listen to all properties in the object

Custom Components - Communication between Pages and Components - Basic Concepts

  • Communication between pages and components- property binding-similar to passing from parent to child

  • Communication between pages and components- event binding---similar to passing from child to parent

 

 Custom component - communication between page and component - get component instance - similar to ref

**illustrate**

  • You can call this.selectComponent('id or class selector') in the parent component
  • Get the instance object of the child component
  • Thus directly accessing arbitrary data and methods of subcomponents.

 

Guess you like

Origin blog.csdn.net/weixin_57127914/article/details/130575189