前端问题
浅笑&回憶
每天进步一点点
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【Echarts】echarts地图展示、自定义点位、地图及点位的点击事件
Echarts地图展示、自定义点位、地图及点位的点击事件原创 2022-09-13 16:47:41 · 4268 阅读 · 0 评论 -
【moment】moment生成日历图及日历事件展示
项目中用到日历展示事件,但一些模板框架不太合适,正好有用到过moment,就整起来啦☺。原创 2022-09-13 16:02:19 · 491 阅读 · 0 评论 -
Echarts--象形柱图
效果展示:主要代码:option = { // backgroundColor: "#000643", //间距 grid: { left: "3%", //左边距 // right: "4%", //右边距 top: "3%", //上边距 // bottom: "5%", //下边距 containLabel: true },原创 2021-09-23 10:16:37 · 615 阅读 · 0 评论 -
moment获取现在时间、周一、前一周、月初1号、1月1号、上个月
1、现在的时间:moment().format('YYYY-MM-DD HH:mm:ss')2、前一周时间零点:var time = new Date().getTime() - 24 * 7 * 60 * 60 * 1000moment(time).format('YYYY-MM-DD 00:00:00')3、当前时间的前一个月时间:moment().subtract(1, 'months').format('YYYY-MM-DD HH:mm:ss')4、当月1号零点:moment(原创 2021-08-10 09:47:59 · 3825 阅读 · 0 评论 -
天气API自定义
getWeatherFun() { $.getJSON('https://yiketianqi.com/api?version=v61&appid=APIID&appsecret=KcsRCM8w').success( params => { // console.log(params, '对') this.wd1 = params.tem this.wd2 = params.air_level.原创 2020-08-12 15:20:56 · 286 阅读 · 0 评论 -
Echarts饼图图例、饼图样式、文字在线上的样式及自适应宽度
在默认的饼状图里面,饼图样式是单一的,有时候根据ui需要,根据不同的背景色,需要将图例文字调成白色或者其他颜色,那么,修改这些的还是一句话,修改某个属性即可。这是我的饼图样式:1、legend改变图例样式:legend: { left: 'left', top: 'bottom', // bottom: 10, data: ['非甲烷总烃', 'PM2.5', 'PM10', '颗粒物', '油烟浓度'], itemWidth: 24, // 设置宽度 itemHeight:原创 2020-08-12 10:46:45 · 19258 阅读 · 0 评论
分享