会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Loading
资深 if-else 侠
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
16
下一页
2023年4月20日
uniapp/u-view-u-input组件禁止弹出软键盘
摘要: disabled="disabled" disabledColor="#fff" 使用tap点击事件 <u-input disabled="disabled" disabledColor="#fff" v-model="form.questionName" placeholder="请选择密保提示问
阅读全文
posted @ 2023-04-20 10:36 资深if-else侠
阅读(2701)
评论(0)
推荐(0)
2023年4月19日
el-table拖动排序
摘要: html <el-table ref="multipleTable" :data="tableData" align="left" border class="mytable" row-key="id"> <el-table-column :index="indexMethod" align="ce
阅读全文
posted @ 2023-04-19 20:39 资深if-else侠
阅读(449)
评论(0)
推荐(0)
2023年4月12日
vueRouter-hash模式和history模式
摘要: 1.hash模式 这里的hash就是指url尾巴后的 # 号以及后面的字符。这里的 # 和css里的 # 是一个意思。hash也称作锚点,本身是用来做页面定位的,他可以使对应的id元素显示在可视区域内。 特点:hash 虽然出现在 URL 中,但不会被包括在 HTTP 请求中,对后端完全没有影响,因
阅读全文
posted @ 2023-04-12 13:44 资深if-else侠
阅读(94)
评论(0)
推荐(0)
vue项目通过外部配置文件读取接口地址- 在webpack-index.html模板中使用环境变量
摘要: 概述:在index.html模板中判断当前环境,处于开发环境下时读取process环境变量、处于生产环境下时读取根目录配置文件(./config.js),两种环境下将配置统一挂载到window全局变量上(SET_CONFIG) config.js window.SITE_CONFIG = { app
阅读全文
posted @ 2023-04-12 10:25 资深if-else侠
阅读(742)
评论(0)
推荐(0)
2023年3月9日
单例模式
摘要: <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content=
阅读全文
posted @ 2023-03-09 17:05 资深if-else侠
阅读(30)
评论(0)
推荐(0)
时间戳显示为多少分钟前,多少天前的JS处理
摘要: (转载原文)[https://www.zhangxinxu.com/php/microCodeDetail?id=11] /* ** 时间戳显示为多少分钟前,多少天前的处理 ** eg. ** console.log(dateDiff(1411111111111)); // 2014年09月19日
阅读全文
posted @ 2023-03-09 11:07 资深if-else侠
阅读(40)
评论(0)
推荐(0)
2023年3月8日
svg图标使用
摘要: 封装图标组件 icon-svg /** * Created by wanghonghao on 2023/03/08 */ <!-- Icon-svg --> <template> <svg class="svg-icon" aria-hidden="true"> <use :xlink:href=
阅读全文
posted @ 2023-03-08 21:21 资深if-else侠
阅读(63)
评论(0)
推荐(0)
2023年2月21日
drag & drop 拖拽与拖放
摘要: # 相关重点 1. DataTransfer 对象:退拽对象用来传递的媒介,使用一般为Event.dataTransfer。 2. draggable 属性:就是标签元素要设置draggable=true,否则不会有效果,例如: ``` 列表1 ``` 3. ondragstart 事件:当拖拽元素
阅读全文
posted @ 2023-02-21 09:23 资深if-else侠
阅读(427)
评论(0)
推荐(0)
vue拖拽指令
摘要: Vue.directive('drag', { // 1.指令绑定到元素上回立刻执行bind函数,只执行一次 // 2.每个函数中第一个参数永远是el,表示绑定指令的元素,el参数是原生js对象 // 3.通过el.focus()是无法获取焦点的,因为只有插入DOM后才生效 bind: functi
阅读全文
posted @ 2023-02-21 09:14 资深if-else侠
阅读(91)
评论(0)
推荐(0)
2023年2月17日
BroadcastChannel跨标签页通信
摘要: 前端跨页面通信:Broadcast Channel 它允许同源的不同浏览器窗口,Tab 页,frame 或者 iframe 下的不同文档之间相互通信。通过触发一个 message 事件,消息可以广播到所有监听了该频道的 BroadcastChannel 对象。 BroadcastChannel,就字
阅读全文
posted @ 2023-02-17 14:50 资深if-else侠
阅读(291)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
16
下一页
公告