vue给url 中文参数 添加编码解码
生活随笔
收集整理的這篇文章主要介紹了
vue给url 中文参数 添加编码解码
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
// 解碼用
// decodeURIComponent(str)
// 編碼用
// encodeURIComponent(str)var test = '天天好心情ing'
var a = encodeURIComponent(test)
console.log('編碼后', a)
console.log('解碼后', decodeURIComponent(a))
總結(jié)
以上是生活随笔為你收集整理的vue给url 中文参数 添加编码解码的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: c#使用Aspose实现Word域套打
- 下一篇: Vue表格中文排序