avatar
文章
59
标签
30
分类
6
📝主页
🏆项目
📬联系
🧑‍💻关于
🌐En
👋HarryBlog
搜索
📝主页
🏆项目
📬联系
🧑‍💻关于
🌐En

👋HarryBlog

axios CROS每次请求多一次options请求 axios CROS request two times every time
发表于2019-08-03|开发前端|axios
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事件穿透
发表于2019-06-06|开发前端|Vue.js
Vue.js阻止click事件穿透 将 @click=”fn” 改为 @click.stop=”fn” 即可
支付宝转账跳转js跳转
发表于2018-05-24|开发前端|payment
支付宝转账跳转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
发表于2018-04-24|开发后端|PHP
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...
Nginx负载均衡配置
发表于2018-01-24|开发后端|Nginx
Nginx 负载均衡配置 upstream hcon.com { server localhost:8081 weight=10; server localhost:8082 weight=2; server localhost:8083;}server { listen 80; server_name localhost; location / { proxy_pass http://hcon.com }}
微信小程序 兼容用户拒绝获取位置权限 用户拒绝权限处理
发表于2017-09-15|开发前端
微信小程序 兼容用户拒绝获取位置权限 用户拒绝权限处理 function getAuthor() { wx.getSetting({ success(res) { if (!res.authSetting['scope.userLocation']) { wx.openSetting({ success: (res) =>{ console.log(res) if (!res.authSetting['scope.userLocation']) { wx.showModal({ title: '温馨提醒', content: '需要获取您的地理位置才能使用小程序', cancelText: '不使用', ...
JS判断设备 检查手机系统 检测系统
发表于2016-08-15|开发前端
JS 判断设备 检查手机系统 检测系统 if ( /AppleWebKit.*Mobile/i.test(navigator.userAgent) || /MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/.test( navigator.userAgent )) { if (window.location.href.indexOf("?mobile") < 0) { try { if (/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) { window.location.href = "../m/index.html"; } else if...
1…789
avatar
Harry
文章
59
标签
30
分类
6
联 系
最新文章
comfyui通过Api请求报错,通过comfyui界面执行正常2025-04-18
修改视频元信息时长 duration修改2025-03-16
comfyui gemeni apikey 配置2025-03-15
ffmpeg 中文乱码 windows2024-10-15
canvas绘制文字彩虹弯曲弧形效果 Vue.js2024-05-25
分类
  • 开发53
    • 前端21
    • 后端31
      • 数据库3
    • 工具1
  • 随笔6
标签
comfyui payment MySQL uniapp Python electron Vue.js 马拉松 git 视频 MQTT axios jar ComfyUI 字体 php 跑步 JS Go 绘图 Nginx canvas ApiCloud go vcard PHP struct 进程/线程 公益 python
归档
  • 四月 2025 1
  • 三月 2025 2
  • 十月 2024 1
  • 五月 2024 3
  • 五月 2023 1
  • 四月 2023 4
  • 三月 2023 3
  • 十一月 2022 3
©2017 - 2025 By Harry
搜索