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” 即可
Vue Prevent Click Event Penetration
Use the .stop modifier to prevent bubbling / overlay penetration.
Alipay Transfer Deep Link
Construct alipays:// deep link for predefined transfer parameters.
支付宝转账跳转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**/
PHP 获取小程序openID
PHP 获取小程序openID $appid = '';$secret = $this->app;$code = $_REQUEST["code"];$url = 'https://api.weixin.qq.com/sns/jscode2session?appid=' . $appid . '&secret=' . $secret . '&js_code=' . $code . '&grant_type=authorization_code';$curl = curl_init();curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);curl_setopt($curl, CURLOPT_TIMEOUT, 500);// To ensure communication security,all api use https,so need use two line code to open...
PHP Get WeChat Mini Program openid
Exchange login code for session info to extract openid using jscode2session.