axios表单形式提交数据 axios post data by form type
axios post data by form type,axios application/x-www-form-urlencoded
request({ // url: '', transformRequest: [function(data) { let ret = '' for (let it in data) { ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&' } return ret }], headers: { 'Content-Type': 'application/x-www-form-urle ...
武汉肺炎冠状病毒疫情信息接口Api
中国武汉肺炎疫情信息统计接口Api 每天自动更新,含各国家和中国各城市历史统计 武汉加油 中国加油 众志成城 共渡难关!
git重置成新仓库 git reset to new repository
git重置成新仓库 git reset to new repository
git checkout –orphan latest_branch
git add -A
git commit -am “commit message”
git branch -D master
git branch -m master
git push -f origin master
one line:
git checkout –orphan latest_branch && git add -A && git commit -am “commit message” && git branch -D master && git branch -m master && git push -f origin master
wechat ban domain check
wechat ban domain check!
$domain = 'https://baidu.com';$domain = urlencode($domain);$wxCheckUrl = 'https://weixin110.qq.com/cgi-bin/mmspamsupport-bin/newredirectconfirmcgi?main_type=2&evil_type=20&source=2&url=';$wxCheckUrl .= $domain;file_get_contents($wxCheckUrl);file_put_contents(uniqid().'.txt',json_encode($res));
axios CROS每次请求多一次options请求 axios CROS request two times every time
axios CROS每次请求多一次options请求case: https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Access_control_CORSheader’s param except for the following
Accept
Accept-Language
Content-Language
Content-Type (需要注意额外的限制)
DPR
Downlink
Save-Data
Viewport-Width
Widthother param make the request become complex requests
config.headers['X-Token'] = getToken()
here the reason is ‘X-Token’
Vue.js阻止click事件穿透
Vue.js阻止click事件穿透
将 @click=”fn” 改为 @click.stop=”fn” 即可
支付宝转账跳转js跳转
支付宝转账跳转js跳转
var data = { "s": "money", "u": "20889012xxxxxxxx", "a": "0.04", "m": "HM07L520550221254"};var url = 'alipays://platformapi/startapp?appId=20000123&actionType=scan&biz_data='+data;/**personal userId20889012xxxxxxxxcompany cooperation IP20889012xxxxxxxx**/