編碼內容:
var url = '中文'
編碼:
var UrlEncode = encodeURIComponent(url)
解碼:
var str = decodeURIComponent(UrlEncode)
原理:對URL的組成部分進行個別編碼,而不用於對整個URL進行編碼
編碼內容:
var url = '中文'
編碼:
var UrlEncode = encodeURIComponent(url)
解碼:
var str = decodeURIComponent(UrlEncode)
原理:對URL的組成部分進行個別編碼,而不用於對整個URL進行編碼
https://view.officeapps.live.com/op/view.aspx?src=你地址