Window atob() 메서드

정의와 사용법

atob() 메서드는 base-64编码된 문자열을 디코딩합니다。

ヒント:atob() 메서드 디코딩은 btoa() 메서드 编码된 문자열。

추가로 참조할 수 있는 내용:

btoa() 메서드

예제

base-64编码된 문자열을 디코딩합니다:

let text = "Hello World!";
let encoded = window.btoa(text);
let decoded = window.atob(encoded);

직접 시도해 보세요

문법

window.atob(encoded)

매개변수

매개변수 description
encoded 필수. 디코딩할 문자열.

return value

type description
string decoded string.

브라우저 지원

모든 브라우저가 지원합니다 atob()

크롬 IE 에지 파이어폭스 사파리 오페라
크롬 IE 에지 파이어폭스 사파리 오페라
지원 10-11 지원 지원 지원 지원