摘要: 可能是因为客户端打开的webSocket被关闭了。(生命周期结束,ws的变量被删掉) 阅读全文
posted @ 2025-05-06 16:42 流星曳尾 阅读(48) 评论(0) 推荐(0)
摘要: ES6 教程 - JavaScript 教程 ES6 类 之前 function Person(name) { this.name = name; } Person.prototype.getName = function () { return this.name; }; var john = n 阅读全文
posted @ 2025-04-22 15:44 流星曳尾 阅读(5) 评论(0) 推荐(0)
摘要: method是类里的。Function是独立的 阅读全文
posted @ 2025-03-14 14:45 流星曳尾 阅读(3) 评论(0) 推荐(0)
摘要: 根节点坐标为0,节点i的左子节点,2*i+1,右子节点,2*i+2 子节点坐标i, if (i % 2 == 0) {//右子节点 parent = i / 2 - 1; } else { parent = (i - 1) / 2; } 阅读全文
posted @ 2025-03-11 11:59 流星曳尾 阅读(7) 评论(0) 推荐(0)
摘要: 点解答错误里的添加到测试用例 阅读全文
posted @ 2025-02-11 11:37 流星曳尾 阅读(5) 评论(0) 推荐(0)
摘要: 贝塞尔曲线 https://blog.csdn.net/e295166319/article/details/120363777 阅读全文
posted @ 2025-01-20 19:22 流星曳尾 阅读(12) 评论(0) 推荐(0)
摘要: // Learn TypeScript: // - https://docs.cocos.com/creator/manual/en/scripting/typescript.html (https://docs.cocos.com/creator/2.4/manual/en/scripting/t 阅读全文
posted @ 2024-12-23 11:37 流星曳尾 阅读(24) 评论(0) 推荐(0)
摘要: /** * Returns the index of the first occurrence of a value in an array, or -1 if it is not present. * @param searchElement The value to locate in the 阅读全文
posted @ 2024-12-18 15:07 流星曳尾 阅读(9) 评论(0) 推荐(0)
摘要: clearTracks也删不掉 阅读全文
posted @ 2024-12-17 15:08 流星曳尾 阅读(53) 评论(0) 推荐(0)
摘要: fangFa([a, b]){ } this.fangFa([1,2]); 阅读全文
posted @ 2024-11-29 16:52 流星曳尾 阅读(9) 评论(0) 推荐(0)