Base64 encoding and decoding in client-side Javascript

前端 未结 14 2243
挽巷
挽巷 2020-11-22 04:27

Are there any methods in JavaScript that could be used to encode and decode a string using base64 encoding?

14条回答
  •  自闭症患者
    2020-11-22 05:08

    The php.js project has JavaScript implementations of many of PHP's functions. base64_encode and base64_decode are included.

提交回复
热议问题