UNPKG

xe-utils

Version:

JavaScript 函数库、工具类

15 lines (12 loc) • 423 B
import staticEscapeMap from './staticEscapeMap.js';import helperFormatEscaper from './helperFormatEscaper.js';import each from './each.js';var unescapeMap = {} each(staticEscapeMap, function (item, key) { unescapeMap[staticEscapeMap[key]] = key }) /** * 反转escape * * @param {String} str 字符串 * @return {String} */ var unescape = helperFormatEscaper(unescapeMap) export default unescape