摘要: 一般的窗口关闭的JS如下写法: window.close() 但是呢,chrome,firefox等中有时候会不起作用。 改为下面的写法: window.open("about:blank","_self").close() 或者 window.open("","_self").close() 如果 阅读全文
posted @ 2020-03-13 16:08 yangAL 阅读(671) 评论(0) 推荐(0) 编辑
摘要: 1:表格里有四列:折扣率、成交价、数量、金额。每改变一项,其他三项会改变。 刊例价不能被更改。 上面是dom表格代码,v model连接数据,@change 方法 改变其他的三项,传两个参数,第一个参数是此列的属性值,第二个参数是当前行的数据。 虽然数量 表格里写了 type="number" st 阅读全文
posted @ 2019-11-11 15:19 yangAL 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 在本地找到一个目录,执行 git clone http://gitlab.xxxxx.com/xxxxx/xxxxx.git cd xxxxx/ git log //找到对应版本的SHA值 例如2b1c225dcbbc4e1da11164af945344d88bc8f559 git checkout 阅读全文
posted @ 2019-04-01 13:40 yangAL 阅读(1419) 评论(0) 推荐(0) 编辑
摘要: 这样对比的话,单页面的优势确实很大,但当我自己去打开某宝,某东的移动端页面时,确实它们都是多页面应用。为什么?我能想到的就几点: 1.单页面使用的技术对低版本的浏览器不友好,大公司还得兼顾使用低版本浏览器的用户啊 2.功能模块开发来说,比如说单页面的业务公用组件,有时候你都不知道分给谁开发 3.se 阅读全文
posted @ 2019-03-28 17:46 yangAL 阅读(3225) 评论(0) 推荐(0) 编辑
摘要: 安装一系列eslint插件后,填写eslint配置,配置如下 .editorconfig root = true [ ] charset = utf 8 indent_style = space indent_size = 2 end_of_line = lf insert_final_newlin 阅读全文
posted @ 2019-03-14 11:04 yangAL 阅读(888) 评论(0) 推荐(0) 编辑
摘要: ``` getCookie (name) { // 获取cookie const cookieContent = '; ' + document.cookie const cookies = cookieContent.split( ) return cookies.length 1 ? cooki 阅读全文
posted @ 2019-03-13 18:56 yangAL 阅读(110) 评论(0) 推荐(0) 编辑
摘要: ``` Vue.filter('money', (value, symbol = '', currency = '¥', decimals = 0) = { const digitsRE = /(\d{3})(?=\d)/g value = parseFloat(value) if (!isFini 阅读全文
posted @ 2019-03-13 18:52 yangAL 阅读(197) 评论(0) 推荐(0) 编辑
摘要: ``` //获取侧边栏 if (sessionStorage.getItem( )) { const leftMenu = JSON.parse(sessionStorage.getItem( )) store.dispatch('setLeftMenu', leftMenu) } else { i 阅读全文
posted @ 2019-03-13 18:49 yangAL 阅读(2358) 评论(0) 推荐(0) 编辑
摘要: ``` objWin = window.open(routeUrl.href, obj.code) objWin.focus() ``` 阅读全文
posted @ 2019-03-13 18:45 yangAL 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 需求每天多个时间段里可认领,在可认领时间段的倒计时一小时内,显示倒计时;在可认领时间段内,按钮为亮色;不在可认领时间段内,按钮为灰色 解决: const timeSolts = res.data.data.limitTime // const timeSolts = '10:40 11:00;12: 阅读全文
posted @ 2019-03-13 18:42 yangAL 阅读(268) 评论(0) 推荐(0) 编辑