A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/ko/docs/Web/API/URL/toJSON below:

URL.toJSON() - Web API | MDN

MDN Web Docs
  1. 개발자를 위한 웹 기술
  2. Web API
  3. URL
  4. URL.toJSON()

이 페이지는 영어로부터 커뮤니티에 의하여 번역되었습니다. MDN Web Docs에서 한국 커뮤니티에 가입하여 자세히 알아보세요.

Filter sidebar

목차
  1. URL API
  2. URL
  3. 생성자
    1. URL()
  4. 인스턴스 속성
    1. hash
    2. host
    3. hostname
    4. href
    5. origin
    6. password
    7. pathname
    8. port
    9. protocol
    10. search
    11. searchParams
    12. username
  5. 정적 메서드
    1. canParse()
    2. createObjectURL()
    3. parse()
    4. revokeObjectURL()
  6. 인스턴스 메서드
    1. toJSON()
    2. toString()
  7. URL API에 대한 관련 페이지
    1. URLSearchParams
  8. 안내서
    1. Resolving relative references to a URL
목차 URL.toJSON()

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since December 2018.

URL 인터페이스의 toJSON() 메서드는 URL을 직렬화한 USVString을 반환합니다. 그러나, 사실상 toString()과 같습니다..

참고 : 이 기능은 Web Worker에서 사용할 수 있습니다.

구문

js

const href = url.toJSON();
반환 값

USVString.

예제

js

const url = new URL(
  "https://developer.mozilla.org/ko/docs/Web/API/URL/toString",
);
url.toJSON(); // should return the URL as a string
명세 Specification URL
# dom-url-tojson
브라우저 호환성 Help improve MDN Was this page helpful to you? Learn how to contribute

.

This page was last modified on 2023년 7월 30일 by MDN contributors.

View this page on GitHub

•

Report a problem with this content

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4