摘要:
init.js增加共用方法 function addMaterialSettings(gui, controls, material, folderName = "Material") { controls.material = material; const folder = gui.addFol 阅读全文
摘要:
Group <canvas id="mainCanvas"></canvas> <script type="importmap"> { "imports": { "three": "./js/build/three.module.js", "three/addons/": "./js/jsm/" } 阅读全文
摘要:
mesh之位置、缩放、平移、旋转属性 <canvas id="mesh-properties"></canvas> <script type="importmap"> { "imports": { "three": "./js/build/three.module.js", "three/addon 阅读全文
摘要:
开发过程中常常会遇到echarts图由于容器隐藏导致图表不显示问题,最简单的办法就是给容器元素加上宽度和高度 容器加上固定的宽度和高度 <div id="res" style="height: 450px;width:1200px"></div> 然而在实际开发中某些场景下,要求图表宽度100%显示 阅读全文
摘要:
最近发现了个问题:ajax post请求查询参数数量动态变化有200-250000个,当参数超过一定数量N时,post传到后台接的参数就只有N个,多出的参数都没附到请求中,这也是奇怪的事情,浏览器对参数的个数有限制。 js const payload = { date: "2024-05-10", 阅读全文
摘要:
静态场景 <canvas id="mainCanvas"></canvas> <script type="importmap"> { "imports": { "three": "./js/build/three.module.js", "three/addons/": "./js/jsm/" } 阅读全文
摘要:
需要写一段合并时间区间的代码,写个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 阅读全文