摘要:
使用this.$nextTick(),不然对话框中的表格获取不到选中的信息,因为它要等表格数据加载出来,再去做勾选判断,再渲染 dialogOpen() { this.$nextTick(() => { this.list.forEach((item,index) => { // list是对话框中 阅读全文
posted @ 2022-11-01 16:41
注入灵魂
阅读(28)
评论(0)
推荐(0)
摘要:
fromatTime(val){ const data = new Date(val) const Year = date.getFullYear() let Month = date.getMonth() + 1 Month = Month < 10? '0' + Month : Month le 阅读全文
posted @ 2022-11-01 16:27
注入灵魂
阅读(28)
评论(0)
推荐(0)
摘要:
手机号 /^1[3456789]\d(9)$/ 因为11、12开头的都是特殊号码域,所以不会匹配这两开头的手机号 邮箱 /^\w+([-+.]\w+)@\w+([-.]\w+).\w+[-.]\w+)*$/ 阅读全文
posted @ 2022-11-01 16:15
注入灵魂
阅读(19)
评论(0)
推荐(0)
摘要:
什么是跨域 同源: 协议 + 域名 + 端口号,三者完全相同 以上三个元素只要有一个不相同就是跨域 产生跨域异常的报错信息如下: access to xmlhttprequest at 'http://ip:port1/api/xxx' from origin 'http://ip:port2' h 阅读全文
posted @ 2022-11-01 16:04
注入灵魂
阅读(210)
评论(0)
推荐(0)
摘要:
环境变量设置代理 全局设置代理就使用环境变量配置(这里只针对Linux或者Mac) vim /etc/profile http_proxy=IP:PORT https_proxy=IP:PORT export http_proxy export https_proxy source /etc/pro 阅读全文
posted @ 2022-11-01 15:26
注入灵魂
阅读(85)
评论(0)
推荐(0)

浙公网安备 33010602011771号