- 博客(7)
- 收藏
- 关注
原创 WebSocket与sse
Button @click='closeWs '> 关闭连接<Button>console.log('客户端与服务端连接失败,准备开始重连')if(ws.readyState == 0) { // 重连成功。console.log('ws连接成功啦!console.log('ws关闭成功啦!console.log('ws出错啦!console.log('重连中.....')
2024-09-09 23:18:13
634
1
原创 【无标题】
.find(this.option.series, (s) => s.name === 'X坐标').data = resp.x。_.find(this.option.series, (s) => s.name === 'Y坐标').data = resp.y。_.find(this.option.series, (s) => s.name === 'Z坐标').data = resp.z。data: ['X坐标', 'Y坐标', 'Z坐标']name: '坐标(mm)',name: 'X坐标',
2024-05-31 14:17:45
688
原创 vue3+vite适配浏览器+兼容安卓
import legacyPlugin from '@vitejs/plugin-legacy' //兼容安卓低版本浏览器。// 适配图表需重新计算配置项中的数值,监听resize 背景图需background-size:100% 100%- env.development / production 文件中配置 VITE_BASE_PATH=/xxxxx/// 打包命令行输入 npm run build:base -- base /xxxx。-routes/index.ts中。
2023-07-13 09:59:08
2146
1
原创 自定义选框控制echart数据的显示与隐藏
"今年":checkedthisyear.value,"去年":checkedlastyear.value,data:['今年','去年','同比','环比'],// 趋势图 配置...
2023-06-01 11:26:27
772
原创 接口参数拼接记录
///formdata 参数类型 params 参数值。例如:params:{ids:[],other:''}1.数组 参数 传参 在接口 请求后面,不在请求体中。2.react接口传参 拼接。
2023-05-19 17:44:49
182
1
原创 canvas基础画图/前端定时分页
--- ctx.strokeRect(x,y,宽,高) --- ctx.lineWidth = 5。ctx.fillStyle = "rgba(255,255,255,0.7)" ----- ctx.fillRect(x,y,宽,高);ctx.fillText(‘字体’,+ItemtaxX+ItemWidth/2,+ItemtaxY+ItemHeight/2)ctx.fillStyle=‘’ // 颜色。1.canvas基础画图。// 背景色及坐标画图。
2023-05-19 10:56:43
164
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人