Decode Url Safe
decodeUrlComponent 可能会抛出异常
decodeURIComponent("%C4%97%");
// VM158:1 Uncaught URIError: URI malformed
// at decodeURIComponent (<anonymous>)
// at <anonymous>:1:1
解决方法:
try {
decodeURIComponent('%C4%97%')
}
catch(){
}
Be the first to know when I post cool stuff
Subscribe to get my latest posts by email.
Thanks for signing up! Check your email to confirm your subscription.
Whoops, we weren't able to process your signup.