摘要:
public bibao() { let a = 0; let fun = () => { a++; console.log(`闭包数值${a}`); console.log(`this$`, this); } return fun; } public playbibao() { let aa = 阅读全文
摘要:
1.ico 一定要一直不然不过审核 2.打开激励视频是,把游戏内地的背景音乐关了,不然会重叠 不能过审 3.尽量用最新的全量版本 阅读全文
摘要:
1.把wx. 改成 tt. 阅读全文
摘要:
https://bbs.egret.com/forum.php?mod=viewthread&tid=55311&highlight=声音 阅读全文
摘要:
带着这样的疑问, 我做了个小统计简单粗暴, 直接在HashObject 中插入: [AppleScript] 纯文本查看 复制代码 ? 01 02 03 04 05 06 07 08 09 10 HashObject.count = {}; function HashObject() { this. 阅读全文
摘要:
1.到指定目录 npm init -y 2.复制 淘宝镜像 [地址: https://npm.taobao.org] npm i lodash --save --registry=https://registry.npm.taobao.org 3.安装 nodemon cross-env 模块 no 阅读全文
摘要:
1.egret create_lib egret 2.修改 tsconfig 文件 { "compilerOptions": { "target": "es5", "outFile": "bin/egret/egret.js", "allowJs": true }, "files": [ "egre 阅读全文
摘要:
//1.字典数据 let data: { [key: number]: any }; //2.获取字典的长度 let length= Object.keys(data).length 阅读全文
摘要:
1.不要拉伸 label 的长度 不然 内存暂用会是 你拉伸的宽高占比 阅读全文