You can use btoa() and atob() to convert to and from base64 encoding. ... Encode the String var encodedString = btoa(string); console.log(encodedString); ...
確定! 回上一頁