Javascript Global API

June 26, 2019

node global, browser window 上共同的 API

Table of Contents

Intl

MDN - Intl

URL

MDN - URL

URLSearchParams

MDN - URLSearchParams

node.js v10 已经全局内置 URLSearchParams

低于 v10 可以如下使用

import { URLSearchParams } from 'url'
// or
const URLSearchParams = require('url').URLSearchParams

GitHub polyfill


Profile picture

Personal blog by xg4.
Peace & Love.