urlDecode.js 205 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 export default function(url) { try { // 小程序分享默认会加密一次 url = decodeURIComponent(decodeURIComponent(url)); } catch (error) { console.error(error); } return url; }