会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
hhhoοОo
博客园
首页
新随笔
联系
订阅
管理
2022年8月7日
某个标签需要全屏显示
摘要: 某个标签需要全屏显示时 全屏使用requestFullscreen(),需要在document.documentElement中调用 // 开启全屏显示 let fullarea = document.getElementById('fullArea') fullarea.requestFullsc
阅读全文
posted @ 2022-08-07 15:47 吴wu聊
阅读(48)
评论(0)
推荐(0)
2021年6月3日
react中引入echarts报错Error: xAxis "0" not found
摘要: react中引入echarts报错Error: xAxis "0" not found 解决办法:在引入页面中加入这行代码 : import 'echarts/lib/component/grid'
阅读全文
posted @ 2021-06-03 14:53 吴wu聊
阅读(3400)
评论(0)
推荐(0)
2020年11月12日
页面整体zoom缩放之后,echarts鼠标偏移
摘要: 因为我的页面是通过zoom缩放来实现不同大小屏幕的兼容,后来发现缩放之后,echarts的鼠标移入时发生偏移。 百度了很多资料,用了针对echarts的dom单独再zoom回去,然后再transform:scale()缩放回去 const width = document.documentEleme
阅读全文
posted @ 2020-11-12 10:35 吴wu聊
阅读(5564)
评论(3)
推荐(0)
2020年11月3日
React中引入ckplayer,遇到本地可以使用,线上运行不了,.swf文件不存在
摘要: 可能是因为上传到git中忽略了.swf文件 将.gitignore中的这个选项去掉
阅读全文
posted @ 2020-11-03 09:58 吴wu聊
阅读(211)
评论(0)
推荐(0)
React中使用ckplayer
摘要: 将ckplayer官网的压缩包解压放到public文件夹下,在index.httml中引入 然后就可以在组件中引用了 ckPlayerInit = () => { console.log(window.ckplayer); let videoObject = { container: '#video
阅读全文
posted @ 2020-11-03 09:55 吴wu聊
阅读(428)
评论(0)
推荐(0)
2020年9月14日
数组转字符串
摘要: 数组需要处理成字符串传给后台,用了toString()、join()方法,结果都变成了[object Object],[object Object]格式,后来使用了JSON.stringify()就解决了
阅读全文
posted @ 2020-09-14 17:26 吴wu聊
阅读(403)
评论(0)
推荐(0)
2020年6月12日
天地图实现标点、点聚合、信息窗体和区域划分
摘要: 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聊
阅读(3969)
评论(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聊
阅读(1642)
评论(0)
推荐(0)
2020年5月8日
高德地图实现标点、点聚合和信息窗体
摘要: //展示 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聊
阅读(2619)
评论(0)
推荐(0)
公告