Small program creates a new page

1. In the following pages directory, right, the new catalog, from the name

2. In the new directory, right-.json New File, New .wxml File, New .js file

3. In the .js file written inside page function

4. Write a null .json json file in which: {};

5. app.json inside pages inside the array registered a new page "pages / upPhoto / upPhoto"

6. Write the previous page  

  wx.navigateTo({
      url: '/pages/upPhoto/upPhoto',
    })

 

Guess you like

Origin www.cnblogs.com/tufei7/p/11230931.html