wx.navigateTo 跳轉傳參數時, json解析數據報如下錯誤 lifeCycleMethod onLoad function SyntaxError: Unexpected end of JSON input,
解決方案:一般獲取的json數據先轉換成string字符,如:JSON.stringify(json),然後用encodeURIComponent 編碼,如encodeURIComponent(string), 就可以傳參過去了,到接收頁 ,先 decodeURIComponent(data),然後在 JSON.parse() 取得json數據 賦值!