摘要:
uniapp的ajax封装请求 const baseUrl = 'http://172.16.10.5:8802'; const httpRequest = (opts, data) => { let httpDefaultOpts = { url: baseUrl + opts.url, data 阅读全文
摘要:
js获取两个时间差 function time_dis (direct_time) { // direct_time格式为yyyy-mm-dd hh:mm:ss 指定时间 var now_time = Date.parse(new Date());//当前时间的时间戳 var end_time = 阅读全文
摘要:
vue文件下载功能 第一种 html js window.open(`${this.$config.IPUPLOAD}file/${id}`, "hidden_frame"); 第二种 html 下载 js toDownLoad(id) { if (!this.isDownLoadNow) { th 阅读全文
摘要:
Vue.nectTick() 是在下次DOM更新循环结束之后执行延迟回调,在修改数据之后使用$nextTick,则可以在回调中获取更新后的DOM(dom的改变是发生在nextTick()之后),这个方法作用是当数据被修改后使用这个方法,会回调获取更新后的dom再render出来 Vue.nextTi 阅读全文