摘要:
是因为推送的文件太大了,修改提交缓存大小为500M,或者更大的数字 方法一 配置.git 修改 .git 文件夹下的config文件,添加一段话,内容如下 [http]postBuffer = 524288000 方法二 命令 git config --global http.postBuffer 阅读全文
摘要:
前端: axios.("/xxxxx/getToken/", {}).then((res) => { sessionStorage.setItem("csrftoken111",res.token) //向后台请求并获取csrftoken }); request.js 中添加 FEBS_REQUES 阅读全文
摘要:
一、如果用到jQuery的动画在animate前加上 $(obj).stop(true,true)$(obj).stop(true,true).animate() 二、通过浏览器窗口焦点事件,定时清掉定时器 window .onfocus=function(){ timer=setInterval( 阅读全文
摘要:
参考文献:http://www.360doc.com/content/15/0905/17/9261962_497072422.shtml 阅读全文
摘要:
var canClick = true;$("#button").click(function(){ if(!canClick ){ return false } canClick = false; // 一、请求接口时获取返回值后才可以点击 $.post(url,data,(res) => { c 阅读全文
摘要:
main.js中 Vue.prototype.Trim = function(str) { return str.replace(/(^\s*)|(\s*$)/g, ""); } 使用 let str = " 123456789 " Trim(str) // "123456789" 阅读全文
摘要:
index.wxml <view class="container"> <view class="userinfo"> <block wx:if="{{canIUseOpenData}}" calss="userinfo-opendata"> <view class="userinfo-avatar 阅读全文
摘要:
获取用户信息。页面产生点击事件(例如 button 上 bindtap 的回调中)后才可调用,每次请求都会弹出授权窗口,用户同意后返回 userInfo。 将从4月开始用 wx.getUserProfile 替换 wx.getUserInfo 。用法如下: <view class="containe 阅读全文
摘要:
前一段时间出现了一个问题,微信小程序点击事件在开发者工具和真机测试都可以触发,在体验版和正式版都触发不了。 经过排查,最后结果却是请求地址的协议写成了 http 正常应该是 https。线上请求一定要是https 阅读全文
摘要:
任何整数都会被1整除,即余数是0。利用这个规则来判断是否是整数。 function isInteger(obj) { return obj % 1 0 } isInteger(''); //true isInteger('3'); //true isInteger(true); //true isI 阅读全文