Training day 2: micro-channel environment to build small projects program

Learn how to download development tools micro-letters, registered the account of their own development, and the establishment of the first small program.

Four file types

  • js ---------- JavaScrip file
  • json -------- project profiles, responsible for window color, and so on
  • wxml ------- similar to HTML file
  • wxss ------- similar CSS file

Examples of Holle word:

App({

onLaunch: function () {

console.log('App Launch')

},

onShow: function () {

console.log('App Show')

},

onHide: function () {

console.log('App Hide')

}

})

 

Learn the following details:

Json file is responsible for configuring Page path
so we add the following code inside
which the index actually refers to the meaning index.js file
It should be clear path inside pages actually pointing js file
if there is no next directory js file with that name will being given!

Guess you like

Origin blog.csdn.net/qq_41102402/article/details/92991952