urlEncodeGBK.js

js纯代码实现gbk格式的url编码

2021-06-09 या दिनांकाला. सर्वात नवीन आवृत्ती पाहा.

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyforks.org/scripts/427724/939165/urlEncodeGBKjs.js

लेखक
PYUDNG
आवृत्ती
0.0.1.20210609184829
बनवली
2021-06-09
अपडेट केली
2021-06-09
आकार
589 KB
License
नाही

urlEncodeGBK.js

js纯代码实现gbk格式的url编码

更改的方法:

encodeURIencodeURIComponent

效果:

引用前:encodeURI('中文') >> "%E4%B8%AD%E6%96%87"
引用后:encodeURI_GBK('中文') >> "%D6%D0%CE%C4"

来源:http://www.vuln.cn/2901

相较于原代码,修改了函数名称,使原生encodeURIencodeURIComponent依然可用;将变量GBKTable声明为常量

长期地址
遇到问题?请前往 GitHub 提 Issues。