2017-02-28 00:54:18 +08:00
|
|
|
![module info](https://nodei.co/npm/es.shim.png?downloads=true&downloadRank=true&stars=true)
|
|
|
|
|
|
|
|
# es.shim
|
2020-09-18 10:32:10 +08:00
|
|
|
> `es.shim` 提供了部分新API, 以及一些常用的扩展方法。具体如下:
|
2017-02-28 00:54:18 +08:00
|
|
|
|
|
|
|
|
|
|
|
+ Obejct
|
2018-06-29 19:54:02 +08:00
|
|
|
* empty()
|
2017-02-28 00:54:18 +08:00
|
|
|
|
|
|
|
|
|
|
|
+ Array.prototype
|
2020-09-18 10:32:10 +08:00
|
|
|
* flat()
|
|
|
|
* flatMap()
|
|
|
|
* item()
|
2017-02-28 00:54:18 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ Date
|
2018-06-29 19:54:02 +08:00
|
|
|
* isDate()
|
2017-02-28 00:54:18 +08:00
|
|
|
|
|
|
|
|
|
|
|
+ Date.prototype
|
2018-06-29 19:54:02 +08:00
|
|
|
* getFullWeek()
|
|
|
|
* getWeek()
|
|
|
|
* format()
|
2017-02-28 00:54:18 +08:00
|
|
|
|
|
|
|
|
|
|
|
+ String.prototype
|
2018-06-29 19:54:02 +08:00
|
|
|
* splice()
|
|
|
|
* htmlspecialchars()
|
|
|
|
* tohtml()
|
|
|
|
* xss()
|
|
|
|
* escape()
|
2020-09-18 10:32:10 +08:00
|
|
|
* item()
|
2017-02-28 00:54:18 +08:00
|
|
|
|
|
|
|
|
2018-06-29 19:54:02 +08:00
|
|
|
+ Number
|
|
|
|
* parse()
|
2020-09-18 10:32:10 +08:00
|
|
|
* fromString()
|
2017-02-28 00:54:18 +08:00
|
|
|
|
2020-09-18 10:32:10 +08:00
|
|
|
+ Promise
|
|
|
|
* defer()
|
2017-02-28 00:54:18 +08:00
|
|
|
|
|
|
|
|