* @param {string} str - * @returns {string} -
(str)
| 6 | * @returns {string} - |
| 7 | */ |
| 8 | function encodeURLEncoder(str) { |
| 9 | return encodeURIComponent(str) |
| 10 | .replace(/[!'()*]/g, (c) => |
| 11 | '%' + c.charCodeAt(0).toString(16).toUpperCase() |
| 12 | ) |
| 13 | .replace(/%20/g, '+'); |
| 14 | } |
| 15 | |
| 16 | /** |
| 17 | * 刷新token |