摘要:
使用浏览器内置的base64编码和解码的能力。 function utf8_to_b64( str ) { return window.btoa(unescape(encodeURIComponent( str ))); } function b64_to_utf8( str ) { return 阅读全文
posted @ 2021-07-23 09:19
孟繁贵
阅读(87)
评论(0)
推荐(0)
摘要:
const urlSP = new URLSearchParams(location.search); function getQueryString(key){ return urlSP.get(key) }// 或着 const urlObj = new URL(location.href); 阅读全文
posted @ 2021-07-23 09:17
孟繁贵
阅读(89)
评论(0)
推荐(0)

浙公网安备 33010602011771号