Giter Club home page Giter Club logo

weixin's Introduction

weixin

微信小程序的开发流程及环境搭建

开发文档

环境搭建

只适用于window mac

  1. 下载微信开发工具
  2. 在微信开发的设置的开发设置中获取到appId
  3. 打开微信开发工具,输入appId创建项目

初始化文件架构及说明

app.js

小程序脚本代码,可以监听小程序生命周期函数,调用丰富的api接口和声明全局变量

app.json

小程序全局配置文件,包括页面组成(写路径),系统环境下的基本颜色配置。不能写注释

app.wxss

小程序的公共样式表,后缀为.wxss

页面创建

每一次创建页面都需将路径存放在app.json中,每一个小程序页面都是由同名不同后缀的四个文件组成,比如index.wxml,index.wxss,index.js,index.json

index.wxml

weixin's People

Contributors

hsiaoshen avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.