当前位置:网站首页>小程序项目如何创建
小程序项目如何创建
2022-07-27 04:32:00 【super码力】
首先我们需要了解小程序与普通网页开发的区别:
- 运行环境不同
网页运行在浏览器环境中
小程序运行在微信环境中- API不同
由于运行环境的不同,所以小程序中 ,无法调用DOM和BOM的API。但是,小程序中可以调用微信环境提供的各种API,例如:地理定位,扫码,支付- 开发模式不同
网页的开发模式:浏览器+代码编辑器
小程序有自己的一套标准开发模式
小程序的标准开发模式:
- 申请小程序开发账号
- 安装小程序开发者工具
- 创建和配置小程序项目
申请小程序开发账号
注册地址:https://mp.weixin.qq.com/
第一步:右上角点击立即注册跳转页面

第二步:选择小程序点击跳转

第三步:按照要求一步一步填写相关信息即可

安装小程序开发者工具
开发者工具下载地址:https://developers.weixin.qq.com/miniprogram/dev/devtools/stable.html
如下图所示:选择工具,下载稳定版,直接安装

创建和配置小程序项目
第一步:双击打开开发者工具,会看到下图,使用自己注册小程序的微信去扫描

第二步:点击+号创建小程序项目

第三步:填写项目名称,选择存储位置,填写AppID(获取方式在下面),后端服务选择不使用云服务,模板选择JavaScript,最后点击确定

AppID获取方式:
进入链接:https://mp.weixin.qq.com/
扫描登录弹出以下页面可以查看自己的AppID

边栏推荐
- [final review of software engineering] knowledge points + detailed explanation of major problems (E-R diagram, data flow diagram, N-S box diagram, state diagram, activity diagram, use case diagram...)
- [day02] Introduction to data type conversion, operators and methods
- Unity:Resource Merging、Static Batching、Dynamic Batching、GPU Instancing
- timestamp列使用varchar类型和使用date类型有什么区别?
- 【day02】数据类型转换、运算符、方法入门
- 负数的右移
- Do you know about wechat merchant billing?
- RN development series < 9 > --mobx (1) Introduction
- 好用移动APP自动化测试框架哪里找?收藏这份清单就好了!
- Find a specific number in an ordered array
猜你喜欢

Chapter 6: cloud database

利用Power Automate,轻松下载Power BI报告中的数据
![[final review of software engineering] knowledge points + detailed explanation of major problems (E-R diagram, data flow diagram, N-S box diagram, state diagram, activity diagram, use case diagram...)](/img/f4/70634556c4ae8fc3b087084e1e27b3.png)
[final review of software engineering] knowledge points + detailed explanation of major problems (E-R diagram, data flow diagram, N-S box diagram, state diagram, activity diagram, use case diagram...)

Digital integrated circuit: MOS tube device chapter (II)

grid布局

e. The difference between target and e.currenttarget

JS day 2 (variables, variable usage, naming rules, syntax extensions)

第六章:云数据库

BSN IPFs (interstellar file system) private network introduction, functions, architecture and characteristics, access instructions

Final review of management information system
随机推荐
IIC communication protocol (I)
Dry goods | how can independent station operation improve online chat customer service?
Understand kingbasees V9 in one picture
微信小程序编辑头像
[day02] Introduction to data type conversion, operators and methods
timestamp列使用varchar类型和使用date类型有什么区别?
数组中的最大值,最小值,冒泡排序
Huawei's entry into the commercial market: due to the trend, there are many challenges
负数的右移
Using webmvcconfigurer to intercept interface requests is being enhanced (with source code)
【HCIP】重发布、重分布、重分发实验
How can I index the Oracle database field date?
Pinia uses plug-ins for persistent storage.
关于gorm的BeforeDelete钩子方法不生效的问题
Basic configuration of static routing to achieve network wide accessibility
博云容器云、DevOps 平台斩获可信云“技术最佳实践奖”
Sed output specified line
Playwright web crawler actual battle case sharing
Dino paper accuracy, and analyze the variant of its model structure & Detr
CDH集群集成外部Flink(改进版-与时俱进)