01 2021 档案

摘要:if (this._click_callback) this._click_callback.call(null, this); click_call_back: this._onAddRuneClick.bind(this, i) private _onAddRuneClick(pos: numb 阅读全文
posted @ 2021-01-27 15:33 porter_代码工作者 阅读(55) 评论(0) 推荐(0) 编辑
摘要:ssh -p 1001 server@localhost 'python -u C:\Users\Administrator\Desktop\web.py 139.93.94.66'ssh -o ServerAliveInterval=60 -fNR 1001:localhost:22 root@1 阅读全文
posted @ 2021-01-20 13:16 porter_代码工作者 阅读(133) 评论(0) 推荐(0) 编辑
摘要:引擎是白鹭,坐标系 和 cocos_creator 不同 this.max_right = GameConfig.curWidth() - this.mainGroup.width;//this.mainGroup.width 内容的宽 this.max_bottom = GameConfig.cu 阅读全文
posted @ 2021-01-20 10:55 porter_代码工作者 阅读(115) 评论(0) 推荐(0) 编辑
摘要:exml 的 单个对象的数据绑定 教程 1:先定义 皮肤(skin.CommonCountDownSkin)对应的类 CommonCountDownSkin. 实现皮肤需要绑定的值 如:labelColorexport class CommonCountDownSkin extends eui.Co 阅读全文
posted @ 2021-01-15 11:42 porter_代码工作者 阅读(362) 评论(0) 推荐(1) 编辑
摘要:虚拟列表(ScrollView) ,需要显示大量Item时能大幅降低Drawcall scrollview,list 优化 https://forum.cocos.org/t/topic/79055 阅读全文
posted @ 2021-01-12 15:43 porter_代码工作者 阅读(436) 评论(0) 推荐(0) 编辑
摘要:制作预制体 为content添加layout组件 为scrollview中的content节点添加Layout组件,type属性设置为垂直(VERTICAL)布局,Resize Mode属性设置为CONTAINER 属性准备 properties: { HIGH:80, //每一项的高度 PAGE_ 阅读全文
posted @ 2021-01-12 10:42 porter_代码工作者 阅读(1538) 评论(0) 推荐(0) 编辑
摘要:整个 Web 系统架构在 HTTP 协议 之上, 利用 HTTP 的缓存机制不仅可以极大地减少服务器负载, 更重要的是加速页面的载入,以及减少用户的流量消耗。 快速到达和易于访问是 Web 与生俱来的特性, 其缓存机制也早已被服务器和浏览器厂商广泛地实现, 我们作为 Web 内容的作者何乐而不为呢? 阅读全文
posted @ 2021-01-11 09:53 porter_代码工作者 阅读(571) 评论(0) 推荐(0) 编辑
摘要:Git 并不适合管理二进制文件,但有些情况下又不得不添加一些图片之类的二进制文件,但一旦频繁更改的话,历史记录中将记录着每一个完整的二进制文件,导致 repo 越来越大……为了解决该问题,往往需要一些针对二进制文件的处理手段 定期清理 Git 历史 定期清理的话,虽然麻烦,但也最实用,在使用 LFS 阅读全文
posted @ 2021-01-04 10:24 porter_代码工作者 阅读(317) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示