Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cake
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
cake
Commits
82f5b297
Commit
82f5b297
authored
Feb 23, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 教程完善
parent
d4c5cd1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
15 deletions
+9
-15
README.md
README.md
+9
-15
No files found.
README.md
View file @
82f5b297
...
...
@@ -2,6 +2,8 @@
cocos creator技术框架下的H5互动模板框架脚手架,基于cocos creator实现快速开发基于绘玩云的H5互动课件。
[
视频教程传送门
](
https://www.bilibili.com/video/BV1Dq4y1t7n5/
)
# 使用简介
## 前期准备
...
...
@@ -51,20 +53,6 @@ npm start
*
打开浏览器:http://staging-teach.ireadabc.com/template_ci/debug
*
点击右上角齿轮,选择技术选型、调试模式选择“普通”
### 互动模板
*
找到项目根路径下 index.html 文件
*
在引入JS的位置将air.js改为air_online_open.js
*
启动本地服务
```
npm start
```
*
打开浏览器:http://staging-teach.ireadabc.com/template_ci/debug
*
点击右上角齿轮,选择技术选型、调试模式选择“互动”
*
左侧老师、右侧学生
### 真机调试
*
下载模板调试专用app
...
...
@@ -81,4 +69,10 @@ npm start
*
手机和电脑连接同一个Wifi
*
打开调试app,根据提示输入IP地址,点击开始就可以在手机上预览模板了
*
使用 this.log("==调试信息=="); 可以打印日志进行必要的调试
\ No newline at end of file
*
使用 this.log("==调试信息=="); 可以打印日志进行必要的调试
### 注意事项及常见问题
*
项目里所有文件及文件夹的命名方式要注意不能包含空格、汉字、减号
*
项目里尽量不要使用setTimeout、setInterval等定时器,如果使用了记得在onDestroy中释放掉(onDestroy 是指CocosCreator的生命周期钩子)
*
理论上禁止使用全局变量,因为模板到线上会进行组装,常见问题是一个模板使用多次造成全局变量被读脏
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment