上一页 1 2 3 4 5 6 7 ··· 21 下一页
摘要: init.js增加共用方法 function addMaterialSettings(gui, controls, material, folderName = "Material") { controls.material = material; const folder = gui.addFol 阅读全文
posted @ 2024-05-23 16:46 carol2014 阅读(10) 评论(0) 推荐(0) 编辑
摘要: Group <canvas id="mainCanvas"></canvas> <script type="importmap"> { "imports": { "three": "./js/build/three.module.js", "three/addons/": "./js/jsm/" } 阅读全文
posted @ 2024-05-23 16:27 carol2014 阅读(10) 评论(0) 推荐(0) 编辑
摘要: mesh之位置、缩放、平移、旋转属性 <canvas id="mesh-properties"></canvas> <script type="importmap"> { "imports": { "three": "./js/build/three.module.js", "three/addon 阅读全文
posted @ 2024-05-17 11:46 carol2014 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 开发过程中常常会遇到echarts图由于容器隐藏导致图表不显示问题,最简单的办法就是给容器元素加上宽度和高度 容器加上固定的宽度和高度 <div id="res" style="height: 450px;width:1200px"></div> 然而在实际开发中某些场景下,要求图表宽度100%显示 阅读全文
posted @ 2024-05-15 15:18 carol2014 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 最近发现了个问题:ajax post请求查询参数数量动态变化有200-250000个,当参数超过一定数量N时,post传到后台接的参数就只有N个,多出的参数都没附到请求中,这也是奇怪的事情,浏览器对参数的个数有限制。 js const payload = { date: "2024-05-10", 阅读全文
posted @ 2024-05-15 11:59 carol2014 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 静态场景 <canvas id="mainCanvas"></canvas> <script type="importmap"> { "imports": { "three": "./js/build/three.module.js", "three/addons/": "./js/jsm/" } 阅读全文
posted @ 2024-05-09 11:31 carol2014 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 需要写一段合并时间区间的代码,写个demo记录下 <?php $arr = [ ["2024-04-16 11:25:46", "2024-04-16 12:19:21"], ["2024-04-16 03:14:06", "2024-04-16 10:13:21"], ["2024-04-16 1 阅读全文
posted @ 2024-05-02 11:21 carol2014 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 很久没写上传文件的功能,偶然在laravel中用jquery ajax发送FormData对象居然报错了,记录下解决方法。 路由 <?php Route::get('test/fileUpload', [TestController::class, 'fileUpload']); Route::po 阅读全文
posted @ 2024-04-16 16:02 carol2014 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 仍然是 在图片上特定区域根据数值显示不同的颜色 的需求。拖了这么久,最终的解决方案终于定下来了:使用aoi检测设备导出的坐标来标定需显示数值和颜色的区域,如此一来就不需要人操作UI界面来标定数值的显示区域。 最终使用echarts显示的方法有2种: 地图map+使用坐标标记区域且区域有name属性的 阅读全文
posted @ 2024-04-15 16:31 carol2014 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 初始化共用方法 <canvas id="model"></canvas> <canvas id="texture"></canvas> <canvas id="shadow"></canvas> <canvas id="color"></canvas> <script type="importmap 阅读全文
posted @ 2024-04-05 17:14 carol2014 阅读(164) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 21 下一页