vue给url添加编码
作者:互联网
原文链接: https://blog.csdn.net/qq_46302247/article/details/120993985
// 解码用
// decodeURIComponent(str)
// 编码用
// encodeURIComponent(str)
var test = '天天好心情ing'
var a = encodeURIComponent(test)
console.log('编码后', a)
console.log('解码后', decodeURIComponent(a))
标签:编码,vue,console,log,url,var,decodeURIComponent,test 来源: https://www.cnblogs.com/fswhq/p/16560515.html