摘要: 不然会重复调用超多次接口+11111111111111111111 阅读全文
posted @ 2019-05-28 14:43 Brian_白 阅读(1340) 评论(0) 推荐(0) 编辑
摘要: replaceNumber () { this.bankNumber = this.bankNumber.replace(/\D/g,'').replace(/....(?!$)/g,'$& ') }, let databody = { "code": that.bankNumber.replace(/\s*/g,""), "token": that.$store.... 阅读全文
posted @ 2019-04-23 10:08 Brian_白 阅读(360) 评论(0) 推荐(0) 编辑
摘要: vConsole 是一个由微信公众平台前端团队研发的 Web 前端开发者面板 最好放在head上初始化 阅读全文
posted @ 2019-02-27 17:22 Brian_白 阅读(2160) 评论(0) 推荐(0) 编辑
摘要: 安装 vue cli3 # 安装 Vue Cli npm install -g @vue/cli # 创建一个项目 vue create baifubin # 打开图形化界面 vue ui 安装 vue 移动端rem 通过cli3 直接搜索或npm npm install postcss-pxtor 阅读全文
posted @ 2019-01-08 09:18 Brian_白 阅读(596) 评论(0) 推荐(0) 编辑
摘要: import Vue from 'vue' import axios from 'axios' import qs from 'qs' import { Message } from 'element-ui' // 响应时间 axios.defaults.timeout = 5 * 1000 // 配置cookie // axios.defaults.withCredentials = ... 阅读全文
posted @ 2018-11-23 10:49 Brian_白 阅读(330) 评论(0) 推荐(0) 编辑
摘要: //解决第三方软键盘唤起时底部input输入框被遮挡问题 var bfscrolltop = document.body.scrollTop;//获取软键盘唤起前浏览器滚动部分的高度 $("input.inputframe").focus(function(){//在这里‘input.inputframe’是我的底部输入栏的输入框,当它获取焦点时触发事件 inte... 阅读全文
posted @ 2018-09-21 15:30 Brian_白 阅读(1532) 评论(0) 推荐(0) 编辑
摘要: 利用http://www.jsons.cn/Down/jquery.json2xml.js 插件var xml_content = $.json2xml(json_object);即可简单方便 但是复杂的参数就比较混乱,当标签为空的时候要判断是否为空,否则innerHTML 就会报错 如: 这样就需 阅读全文
posted @ 2018-09-08 01:24 Brian_白 阅读(1155) 评论(0) 推荐(0) 编辑
摘要: 就是模拟一个。 参考 https://blog.csdn.net/rorntuck7/article/details/54378963 阅读全文
posted @ 2018-07-20 18:50 Brian_白 阅读(3137) 评论(0) 推荐(0) 编辑
摘要: wx.switchTab({ url: `../wx_manager_center/wx_manager_center`, success:function(){ var page = getCurrentPages().pop(); if (page == undefined... 阅读全文
posted @ 2018-07-19 16:44 Brian_白 阅读(2020) 评论(0) 推荐(0) 编辑
摘要: 最近做小程序商城。列表秒杀倒计时这个坑死了。还是借鉴网上大佬的方法 countDownList: [] 主要是将获取到的时间循环出来单独存一个数组。然后再倒计时。获取的时间和计算机的时间对比。 然后再每个商品的index下便可获取到每个倒计时了 阅读全文
posted @ 2018-07-18 16:00 Brian_白 阅读(4022) 评论(0) 推荐(0) 编辑