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(){

}