会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
重剑无锋,大巧不工
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
下一页
2021年3月9日
vue 多级表头及表头对角线
摘要: 展示效果 HTML部分 <el-table :data="tableData4" style="width: 100%" customClass="table4"> <el-table-column label="指标" align="right" width="90"> <el-table-col
阅读全文
posted @ 2021-03-09 18:13 搜戴斯
阅读(961)
评论(0)
推荐(0)
2021年2月22日
vue 读取本地.txt文件
摘要: vue 读取本地.txt文件 methods: { getdev() { // 更新数据devInfo.txt文件接口 let xhr = new XMLHttpRequest(), okStatus = document.location.protocol "file:" ? 0 : 200; x
阅读全文
posted @ 2021-02-22 17:44 搜戴斯
阅读(12173)
评论(0)
推荐(0)
vue indexedDB的使用
摘要: vue indexedDB的使用 import Idb from 'idb-js' // 引入Idb import db_student_config from './db_student_config' // 引入数据库配置 methods: { getdev() { Idb(db_student
阅读全文
posted @ 2021-02-22 17:43 搜戴斯
阅读(1479)
评论(0)
推荐(0)
vue LocalStorage的使用
摘要: vue LocalStorage的使用 //设置LocalStorage localStorage.setItem('deviceData',JSON.stringify(res)); //获取LocalStorage localStorage.getItem('deviceData');
阅读全文
posted @ 2021-02-22 17:42 搜戴斯
阅读(159)
评论(0)
推荐(1)
vue 引入pako解压与压缩字符串
摘要: vue 引入pako解压与压缩字符串 import pako from 'pako' //引入pako解压与压缩字符串 methods: { // 设备浏览-加载设备信息 getDeviceInfo() { let that = this; //后端接口获取压缩数据 getDeviceInfo().
阅读全文
posted @ 2021-02-22 17:37 搜戴斯
阅读(2724)
评论(0)
推荐(0)
vue 页面定时器
摘要: data() { return { intervalId:null, // 定时器 }; }, methods: { // 定时刷新数据函数 30s // 参考教程-> https://www.cnblogs.com/aurora-ql/p/13300202.html dataRefreh() {
阅读全文
posted @ 2021-02-22 16:30 搜戴斯
阅读(122)
评论(0)
推荐(0)
vue websocket长连接
摘要: created() { //页面刚进入时开启长连接 this.initWebSocket(); }, destroyed: function () { //页面销毁时关闭长连接 this.websocketclose(); }, methods: { initWebSocket() { //初始化w
阅读全文
posted @ 2021-02-22 16:28 搜戴斯
阅读(373)
评论(0)
推荐(0)
vue 监听键盘&窗口&是否全屏变化
摘要: mounted() { // 监听浏览器窗口大小变化 window.onresize = () => { return (() => { this.clientWidth = document.body.clientWidth-210; this.clientHeight = document.bo
阅读全文
posted @ 2021-02-22 15:51 搜戴斯
阅读(786)
评论(0)
推荐(0)
2020年4月15日
vue下canvas裁剪图片
摘要: vue下canvas裁剪图片
阅读全文
posted @ 2020-04-15 23:42 搜戴斯
阅读(1153)
评论(0)
推荐(0)
2019年10月15日
VUE项目开发中使用WebSocket
摘要: 初始化WebSocket initWebSocket(){ //初始化weosocket const wsuri = 'ws://10.100.45.8:8888/websocket';//ws地址 this.websock = new WebSocket(wsuri); this.websock.
阅读全文
posted @ 2019-10-15 15:05 搜戴斯
阅读(2195)
评论(0)
推荐(0)
1
2
3
4
下一页
公告