解決方式:使用js的encodeURIComponent和decodeURIComponent函數.html
當傳遞參數前,使用encodeURIComponent進行編碼,將特殊符號進行編碼.函數
使用url的時候,再用decodeURIComponent,獲得原始的url地址.編碼