Simple small program development process

Small micro-channel program development process
official website: https: //developers.weixin.qq.com/miniprogram/dev/framework/structure.html
Creating a project
1. First register an account
registered URL: https: //mp.weixin.qq.com /
2. this stuff people need to develop their own tools, download a development tool
download URL: HTTPS: //developers.weixin.qq.com/miniprogram/dev/devtools/download.html
3. New project, open development tools - AppID given when new projects --- add an account - - New complete the
project created will knock code
1. directory structure

 

 

 

1. The directory structure of
pages file: put inside a page. wxml. Is html, wxss is css js json is the logic of the code page configurations, depending on the line Tell me what network

utils: the need to use external js use of grammar is es6 of module.exports

app.js: Global js other pages var app = getApp (); introducing line, app.globalData attributes used on the line.
app.wxss: Global CSSS
App.json: global configuration directory follows, the specific configuration of the line Tell me what network

 

It lists a bunch of brothers and project code: https: //blog.csdn.net/sinat_17775997/article/details/53979352, you can download several import facie copied, one week you can come up with a small program came;

这是一个视频教程链接:https://pan.baidu.com/s/1iQ8vy0t1HcQivoHEelNrJg&shfl=sharepset 
提取码:m2tg 

最后多一句:要用JSSDK调用微信里面的一些功能小程序调不到,需要公众号里调用,完了小程序用引入外部页面就行(比如要用wifi连接硬件时的一键配网)

Guess you like

Origin www.cnblogs.com/zyb-722/p/11711814.html