摘要: 某个标签需要全屏显示时 全屏使用requestFullscreen(),需要在document.documentElement中调用 // 开启全屏显示 let fullarea = document.getElementById('fullArea') fullarea.requestFullsc 阅读全文
posted @ 2022-08-07 15:47 吴wu聊 阅读(36) 评论(0) 推荐(0) 编辑
摘要: react中引入echarts报错Error: xAxis "0" not found 解决办法:在引入页面中加入这行代码 : import 'echarts/lib/component/grid' 阅读全文
posted @ 2021-06-03 14:53 吴wu聊 阅读(2955) 评论(0) 推荐(0) 编辑
摘要: 因为我的页面是通过zoom缩放来实现不同大小屏幕的兼容,后来发现缩放之后,echarts的鼠标移入时发生偏移。 百度了很多资料,用了针对echarts的dom单独再zoom回去,然后再transform:scale()缩放回去 const width = document.documentEleme 阅读全文
posted @ 2020-11-12 10:35 吴wu聊 阅读(4856) 评论(3) 推荐(0) 编辑
摘要: 可能是因为上传到git中忽略了.swf文件 将.gitignore中的这个选项去掉 阅读全文
posted @ 2020-11-03 09:58 吴wu聊 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 将ckplayer官网的压缩包解压放到public文件夹下,在index.httml中引入 然后就可以在组件中引用了 ckPlayerInit = () => { console.log(window.ckplayer); let videoObject = { container: '#video 阅读全文
posted @ 2020-11-03 09:55 吴wu聊 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 数组需要处理成字符串传给后台,用了toString()、join()方法,结果都变成了[object Object],[object Object]格式,后来使用了JSON.stringify()就解决了 阅读全文
posted @ 2020-09-14 17:26 吴wu聊 阅读(392) 评论(0) 推荐(0) 编辑
摘要: initMap() { //初始化地图对象 this.map = new T.Map("my_map"); // this.map.enableDrag(); var ctrl = new T.Control.MapType(); this.map.addControl(ctrl); this.ma 阅读全文
posted @ 2020-06-12 16:09 吴wu聊 阅读(3487) 评论(0) 推荐(0) 编辑
摘要: <div id="container"></div> var map = new AMap.Map("my_container", { resizeEnable: true, center: [120.946263, 30.526436], zoom: 10 });//初始化地图 var distr 阅读全文
posted @ 2020-06-12 14:51 吴wu聊 阅读(1553) 评论(0) 推荐(0) 编辑
摘要: //展示 showscenicPoints() { var icon = new AMap.Icon({ size: new AMap.Size(35, 45), // 图标尺寸 image: "/images/scenic.png" // Icon的图像 }); // console.log(th 阅读全文
posted @ 2020-05-08 15:35 吴wu聊 阅读(2532) 评论(0) 推荐(0) 编辑