会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
xiaoxiao95
博客园
首页
新随笔
联系
订阅
管理
2022年11月28日
对象方法
摘要: /** * @description: 处理数据(格式转换) * @param {*} obj { x0: [11, 12, 13],x1: [21, 22, 23] } * @return {*} data 表格正常数据格式 */ export function dealData(obj) { c
阅读全文
posted @ 2022-11-28 15:29 xiaoxiao95
阅读(35)
评论(0)
推荐(0)
2022年8月22日
Echarts环状饼图
摘要: 1,dataEcharts.vue <template> <div ref="chartDom" class="chartDom"> <div class="content"> <div class="items"> <div class="line"> <div class="left"> <sv
阅读全文
posted @ 2022-08-22 17:46 xiaoxiao95
阅读(104)
评论(0)
推荐(0)
2022年6月24日
js计算数组中对象属性的和
摘要: let datalist = [ { 'skuId': 1, 'skuName': 'test1', 'number': 11 }, { 'skuId': 2, 'skuName': 'test2', 'number': 22 }, { 'skuId': 3, 'skuName': 'test3',
阅读全文
posted @ 2022-06-24 12:02 xiaoxiao95
阅读(1890)
评论(0)
推荐(0)
2022年6月20日
step 步骤条
摘要: 一,step1页面 <template> <div class="add-data card" v-loading="loading" :element-loading-text="loadingText" > <div class="add-data-box"> <div class="steps
阅读全文
posted @ 2022-06-20 17:44 xiaoxiao95
阅读(118)
评论(0)
推荐(0)
2022年6月17日
request.js封装
摘要: import Vue from 'vue' import router from '@/router' import store from '@/store' import axios from 'axios' import { Message } from 'element-ui' const p
阅读全文
posted @ 2022-06-17 13:17 xiaoxiao95
阅读(247)
评论(0)
推荐(0)
2022年6月8日
页面渲染性能的优化
摘要: 页面渲染性能的优化衡量指标window.performance是w3c提供的用来测量网页和Web应用程序的性能api。其中performance timing提供了延时相关的性能信息,可以高精度测量网站性能 。 白屏时间=页面开始展示的时间点(PerformanceTiming.domLoading
阅读全文
posted @ 2022-06-08 10:24 xiaoxiao95
阅读(147)
评论(0)
推荐(0)
vue解决浏览器兼容性问题
摘要: 在 vue cli2 项目中使用Vuex时,ie浏览器会出现“Vuex requires a Promise polyfill in this browser”的错误提示,这是因为使用了ES6 Promise,而IE浏览器不支持,解决方案如下: 1. 安装babel-polyfill 执行以下命令,
阅读全文
posted @ 2022-06-08 09:48 xiaoxiao95
阅读(6037)
评论(0)
推荐(0)
2022年6月7日
websocket封装(含断网重连、支持同时建立多条连接、手动销毁)
摘要: 1、新建websocket.js /** * 发起websocket请求函数 * @param {object} wsObj - ws对象 * @param {string} type - 操作websocket:销毁close、创建create * @param {number} timeout
阅读全文
posted @ 2022-06-07 14:53 xiaoxiao95
阅读(1749)
评论(0)
推荐(0)
Vue G6 自定义组件 可视化树形图搭建
摘要: <template> <div> <!-- 创建容器 --> <div id="mountNode"></div> </div></template> import G6 from '@antv/g6' export default { mounted() { const data = { labe
阅读全文
posted @ 2022-06-07 13:30 xiaoxiao95
阅读(1434)
评论(0)
推荐(0)
vue实现拖拽进度条,并封装复用
摘要: 组件代码 <template> <div> <div class="slider" ref="slider"> <div class="process" :style="{ width }"></div> <div class="thunk" ref="trunk" :style="{ left }
阅读全文
posted @ 2022-06-07 13:23 xiaoxiao95
阅读(371)
评论(0)
推荐(0)
下一页
公告