• 2025-01-21threejs避免重复创建CSS2DObject
    代码如下:constcss2DObjects=[];constcreateLabelObj=(idText,)=>{letdiv=document.getElementById(idText);for(vari=0;i<css2DObjects.length;i++){constpreDiv=css2DObjects[i].element;if(preDiv.id===idTex