随笔分类 -  前端

前端-frontend
摘要:前端网页托管-->参数配置-->域名信息-->更新证书 阿里云 https--SSL证书获取 阅读全文
posted @ 2025-02-03 08:52 风别鹤 阅读(2) 评论(0) 推荐(0) 编辑
摘要:1、3D物体碰撞有bug,比如圆柱体无法正常碰撞,圆形、长方体碰撞可能还正常 2、IDE界面增删组件时,显示经常无法正常显示,甚至有IDE server崩溃,网页无法显示。比如: [Scene] component already added 或者 nodejs web server出错 3、nod 阅读全文
posted @ 2024-10-11 02:14 风别鹤 阅读(70) 评论(0) 推荐(0) 编辑
摘要:A: 项目开始场景(Start Scene)加载显示最快的Bundle设置方案:不要使用resources文件夹,除了项目开始场景(Start Scene)所在文件夹,将所有文件分类设置成Bundle; B: A方案较为麻烦,项目文件夹多时,需要设置太多Bundle。省事些的方案:可将框架基础代码放 阅读全文
posted @ 2024-08-04 05:49 风别鹤 阅读(168) 评论(0) 推荐(0) 编辑
摘要:Cocos Creator 3.8.x bundle注意知识点,需掌握bundle核心知识点才能理解。 bundle核心知识点 : https://www.cnblogs.com/wujinhong/p/18341405 注意知识点(引擎3.8.3实际运行测试过): 1、默认4个Bundle bui 阅读全文
posted @ 2024-08-04 05:46 风别鹤 阅读(298) 评论(0) 推荐(0) 编辑
摘要:bundle官网知识文档: https://docs.cocos.com/creator/3.8/manual/zh/asset/bundle.html bundle核心知识点如下: 阅读全文
posted @ 2024-08-04 05:42 风别鹤 阅读(82) 评论(0) 推荐(0) 编辑
摘要:错误码: Access to script at 'chunks:///_virtual/xxx.ts' from origin 'https://xxx.com' has been blocked by CORS policy: Cross origin requests are only sup 阅读全文
posted @ 2024-07-25 21:30 风别鹤 阅读(115) 评论(0) 推荐(0) 编辑
摘要:ScrollView 是一种带滚动功能的容器 1、删除ScrollView下Sprite组件的SpriteFrame 2、ScrollView下scrollBar的Sprite组件的Color设为:FFFFFF00 3、ScrollView下view的Graphics组件的FillColor设为:F 阅读全文
posted @ 2024-05-14 04:35 风别鹤 阅读(76) 评论(0) 推荐(0) 编辑
摘要:在小游戏加载某个bundle后,如果报以下错误: 5302:Can not find class '%s' 说明A.bundle中某个预制件*.prefab,在对象执行初使化时,引用了未加载的B.bundle的资源。 注释:如果已加载A.bundle中某个预制件*.prefab,引用了未加载的B.b 阅读全文
posted @ 2024-05-13 23:06 风别鹤 阅读(249) 评论(0) 推荐(0) 编辑
摘要:braces: 大括号 brackets: 中括号 parenthesis: 圆括号(小括号、括号) semicolon: 分号 comma: 逗号 阅读全文
posted @ 2024-04-09 02:24 风别鹤 阅读(16) 评论(0) 推荐(0) 编辑
摘要:1.导入类时,批量导入 2.导入 override...关键字时,批量导入 3、.x .y-->.setPosition( block.position.x, block.position.y ); 4、this.node.scale = 0.6;-->this.node.setScale(0.6, 阅读全文
posted @ 2024-02-29 17:21 风别鹤 阅读(251) 评论(0) 推荐(0) 编辑
摘要:减少代码体积 | 尚硅谷 Web 前端之 Webpack5 教程 (yk2012.github.io) npm install image-mininizer webpack plugin imagemin -D 无损压缩 npm install imagemin-gifsicle imagemin 阅读全文
posted @ 2023-08-02 22:35 风别鹤 阅读(47) 评论(0) 推荐(0) 编辑
摘要:canvas.style = `touch-action: none; width:widthpx;height:{ height }px; cursor: inherit;`; 阅读全文
posted @ 2023-07-28 16:23 风别鹤 阅读(31) 评论(0) 推荐(0) 编辑
摘要:CommonJS 是一种后端js规范,是nodejs遵循的一种编写js模块的规范引入模块 require('模块路径')定义模块 exports.模块名= function(){ //some code ... } AMD 是一种前端端js规范,依赖前置 (require.js) 引入模块 requ 阅读全文
posted @ 2023-07-13 17:24 风别鹤 阅读(10) 评论(0) 推荐(0) 编辑
摘要:OnCollisionEnter方法要求碰撞的发起方必须拥有刚体,而被碰撞方有没有刚体并不重要; OnTriggerEnter方法则对此没有要求,只需要碰撞双方有一个具有刚体即可触发,当有物体勾选isTrigger属性时,则会执行OnTriggerEnter方法。 阅读全文
posted @ 2023-05-04 20:43 风别鹤 阅读(79) 评论(0) 推荐(0) 编辑
摘要:1、StartCoroutine(Thread1()) 启动协程运行Thread1()方法。 注意是协程,不是线程,详情见:https://www.jianshu.com/p/6d923cb0c900 2、yield return new WaitForSeconds(3.0f); 中断协程3秒 3 阅读全文
posted @ 2023-04-27 06:30 风别鹤 阅读(30) 评论(0) 推荐(0) 编辑

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