上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 40 下一页
摘要: 在平面中,一个点绕任意点旋转θ度后的点的坐标 x’ = cos(theta) * (cx – originX) – sin(theta) * (cy – originY) + originX y’ = sin(theta) * (cx – originX) + cos(theta) * (cy – 阅读全文
posted @ 2020-08-28 10:39 porter_代码工作者 阅读(902) 评论(0) 推荐(0)
摘要: injectScripts.min.js Uncaught TypeError: this.addChild is not a function 地址: https://github.com/jsl6/egret-inspector-install Egret 白鹭开发Chrome插件(修复版) 控 阅读全文
posted @ 2020-08-21 09:27 porter_代码工作者 阅读(691) 评论(0) 推荐(0)
摘要: 问题描述:新创建的项目 engine 5.2.0 改为es6后编译的时候报 Uncaught Error: #1001: 找不到Egret入口类: Main。 什么都没改 解决方案: 1: 给入口文件添加命名空间 比如: 1 namespace app 2: Main 类 添加 导出 关键字 exp 阅读全文
posted @ 2020-08-20 11:29 porter_代码工作者 阅读(1121) 评论(0) 推荐(0)
摘要: /** * Abortable Promise * * @author dondevi * @create 2019-05-27 */ import getAbortController from "./controller.js"; export default class AbortablePr 阅读全文
posted @ 2020-07-24 16:35 porter_代码工作者 阅读(296) 评论(0) 推荐(0)
摘要: namespace Shine { /** socket基类 */ export class BaseSocket { /** 关闭的 */ public static readonly Closed:number=1; /** 连接中 */ public static readonly Conne 阅读全文
posted @ 2020-07-24 11:08 porter_代码工作者 阅读(203) 评论(0) 推荐(0)
摘要: https://juejin.im/post/5b2075375188257d4044c783 ES7 推出的 async/await 特性对 JS 的异步编程是一个重大的改进。在不阻塞主线程的情况下,它为我们提供了使用同步代码风格去异步获取资源的能力。当然使用它也是需要一些技巧,这篇文章我们从不同 阅读全文
posted @ 2020-07-20 09:59 porter_代码工作者 阅读(1065) 评论(0) 推荐(0)
摘要: WebSocket 最大的优势就是能够保持前后端消息的长连接,但是在某些情况下,长连接失效并不会得到及时的反馈,前端并不知道连接已断开。例如用户网络断开,并不会触发 websocket 的任何事件函数,这个时候如果发送消息,消息便无法发送出去,浏览器会立刻或者一定短时间后(不同浏览器或者浏览器版本可 阅读全文
posted @ 2020-07-06 10:01 porter_代码工作者 阅读(674) 评论(0) 推荐(0)
摘要: node js 项目: 采用typescript 编写的好文章 https://cloud.tencent.com/developer/article/1549591 阅读全文
posted @ 2020-06-10 10:03 porter_代码工作者 阅读(131) 评论(0) 推荐(0)
摘要: egret-protobuf 创建Node.js TypeScript后端项目,里面包含了protobuf版本3、egret项目、前后端WebSocket。 1、安装Node.js扩展,支持TypeScript语法 npm install -g typescript 2、创建项目目录project_ 阅读全文
posted @ 2020-05-27 11:01 porter_代码工作者 阅读(730) 评论(0) 推荐(0)
摘要: //取消预览模式: 单击预览,双击才是打卡 "workbench.editor.enablePreview":false, //控制打开的编辑器是否显示再选项卡中 "workbench.editor.showTabs":true, VsCode 跳转到函数之后怎么跳转回之前的位置 VSCode 返回 阅读全文
posted @ 2020-03-28 17:17 porter_代码工作者 阅读(315) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 40 下一页