js序列化及转义

JS的序列化:

    JSON.stringify()  将对象转换为字符串

    JSON.parse()  将字符串转换为对象类型

转义:

    decodeURI()            URI中未转义的字符

    decodeURIComonent()       URI组件中未转义字符

    encodeURI()             URI中的转义字符

    encodeURIComponent()      转义URI组件中的字符

    escape()                 对字符串转义

    unescape()               给转义字符串解码

    URIError()                由URI的编码和解码方法抛出



猜你喜欢

转载自blog.csdn.net/weixin_41971902/article/details/80613102