05 2024 档案

摘要:动画 <canvas id="mainCanvas"></canvas> <script type="importmap"> { "imports": { "three": "./js/build/three.module.js", "three/addons/": "./js/jsm/" } } 阅读全文
posted @ 2024-05-23 16:54 carol2014 阅读(9) 评论(0) 推荐(0) 编辑
摘要:加载各种模型 <canvas id="mainCanvas"></canvas> <script type="importmap"> { "imports": { "three": "./js/build/three.module.js", "three/addons/": "./js/jsm/" 阅读全文
posted @ 2024-05-23 16:50 carol2014 阅读(94) 评论(0) 推荐(0) 编辑
摘要: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) 编辑