610 日 , 2023 15:22:43
新浪图片403解决办法

1、403 Forbidden

403通常表示没有权限访问某个资源,当资源来源开启了防盗链后,只有白名单下的来源才能访问。

2、解决方案

使用图片缓存服务:

i0/1/2/3.wp.com
cdn.cdnjson.com
https://image.baidu.com/search/down?url=

使用方式:
比如请求新浪图片https://tvax3.sinaimg.cn/large/a15b4afegy1fmvj9449p8j21hc0u0wqg.jpg
可以直接使用:
https://i3.wp.com/tvax3.sinaimg.cn/large/a15b4afegy1fmvj9449p8j21hc0u0wqg.jpg
https://cdn.cdnjson.com/tvax3.sinaimg.cn/large/a15b4afegy1fmvj9449p8j21hc0u0wqg.jpg
https://image.baidu.com/search/down?url=https://tvax3.sinaimg.cn/large/a15b4afegy1fmvj9449p8j21hc0u0wqg.jpg
1026 日 , 2022 12:00:52
812 日 , 2022 16:31:04
811 日 , 2022 16:31:51
免费观看腾讯视频/优酷/爱奇艺/VIP影片
  • 在视频的播放页地址栏最前面添加wn.run/跳转到在线工具页面,然后选择播放工具,复制视频地址即可进行解析和播放。

  • 或者在浏览器输入以下地址,将要播放的视频地址复制解析框中,选择解析方式,进行解析和播放。

    https://v.1314.in/
    https://vip.huayao88.com/
    https://video.stkey.top/
803 日 , 2022 17:14:46
批量获取文件名

如何获取某一目录下的文件名称

创建bat文件,使用记事本编辑:
dir /b >list.txt
保存,双击运行,打开list.txt文件
803 日 , 2022 11:11:56
谷歌字体使用方案

谷歌字体库(Google Fonts)

官方:https://fonts.googleapis.com/
loli加速:https://fonts.loli.net/
极客族加速:https://fonts.geekzu.org/
802 日 , 2022 15:01:40
728 日 , 2022 17:30:08
正则表达式表示整数、负数和小数
let str = "-10%[-12%,15%]"
// let str = "10%[12%,]"
// let str = "10%[,32%]";
// let str = "[10%,32%]";
// let str = "[,-12%]"
let arr = str.match(/-?([1-9]\d*(\.\d*)*|0\.[1-9]\d*)/g)
let count = 0
arr.forEach(index => {
    if (parseFloat(index) < 0) {
        count += 1;
    }
})
count == 1 ? console.log('橙色') : count > 1 ? console.log('黄色') : console.log('黑色');