1.url傳遞
現將json轉換為字符串再進行編碼
var url = encodeURIComponent(JSON.stringify(data))
2.獲取數據
先url解碼再轉換為json
var data = JSON.parse(decodeURIComponent(url))
