
Cesium
F_efforts
对于前端
我远没有达到精通
只是一直在路上
展开
-
cesiumjs设置沙箱执行脚本
1.禁用infobox,自己设计信息面板。2.设置沙箱的权限var iframe = document.getElementsByClassName(‘cesium-infoBox-iframe’)[0];iframe.setAttribute(‘sandbox’, ‘allow-same-origin allow-scripts allow-popups allow-forms’);一定记住设置src属性为空iframe.setAttribute(“src”, “”);...原创 2021-03-04 15:39:00 · 661 阅读 · 1 评论 -
Cesium信息框不能执行js语句解决办法
在做BIM模型时需要添加按钮,description:“设备名称:” +v.name +“设备编号:” +v.code+</p><p><button id='jk' onclick="$('#jk').remove()">查看监控</button></p>,提示错误Blocked script execution in ‘about:blank’ because the document’s frame is sandboxed an原创 2020-07-02 09:45:43 · 3770 阅读 · 4 评论