会员
T恤
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
流星曳尾
博客园
首页
新随笔
联系
订阅
管理
2025年3月14日
ts里method和Function区别
摘要: method是类里的。Function是独立的
阅读全文
posted @ 2025-03-14 14:45 流星曳尾
阅读(1)
评论(0)
推荐(0)
2025年3月11日
完全二叉树
摘要: 根节点坐标为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 流星曳尾
阅读(1)
评论(0)
推荐(0)
2025年2月11日
leetcode二叉树看不到图
摘要: 点解答错误里的添加到测试用例
阅读全文
posted @ 2025-02-11 11:37 流星曳尾
阅读(1)
评论(0)
推荐(0)
2025年1月20日
贝塞尔曲线
摘要: 贝塞尔曲线 https://blog.csdn.net/e295166319/article/details/120363777
阅读全文
posted @ 2025-01-20 19:22 流星曳尾
阅读(6)
评论(0)
推荐(0)
2024年12月23日
学习ts和creator网站
摘要: // 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 流星曳尾
阅读(10)
评论(0)
推荐(0)
2024年12月18日
寻找数组中某个元素的坐标
摘要: /** * 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 流星曳尾
阅读(4)
评论(0)
推荐(0)
2024年12月17日
skeleton 的setCompleteListener。每次动画结束都会执行
摘要: clearTracks也删不掉
阅读全文
posted @ 2024-12-17 15:08 流星曳尾
阅读(18)
评论(0)
推荐(0)
2024年11月29日
ts的方法的参数可以用数组(惊讶!)
摘要: fangFa([a, b]){ } this.fangFa([1,2]);
阅读全文
posted @ 2024-11-29 16:52 流星曳尾
阅读(5)
评论(0)
推荐(0)
2024年11月28日
try catch
摘要: try{ } catch (e) { cc.error(e.message); } 能catch到异常,但还是卡死,感觉没啥用。而且catch不到异步代码里的异常
阅读全文
posted @ 2024-11-28 17:10 流星曳尾
阅读(7)
评论(0)
推荐(0)
2024年11月25日
不用写this
摘要: 直接写变量名,加enter。自动补全this
阅读全文
posted @ 2024-11-25 19:28 流星曳尾
阅读(4)
评论(0)
推荐(0)
下一页
公告