看板 Web_Design 關於我們 聯絡資訊
假設有個網址 傳遞參數如下 www.test123.com.tw?col[0]=1&col[2]=AAA&col[5]=5A 看起來col很像一個陣列,但其實不是@@ 這有點算是table的 filter 。 以上述的例子,就是 欄位index 0 = 1 以及index 2 = AAA 以及index 5 = 5A 的資料... 想請問有比較快速的Parse方式嗎?? 還是只能一個& spilt 慢慢去拆解?? -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.39.110.13 ※ 文章網址: https://www.ptt.cc/bbs/Web_Design/M.1439994039.A.263.html ※ 編輯: don750421 (114.39.110.13), 08/19/2015 22:21:06
pm2001: 把你要的資料包成json轉string變成get變數 08/19 23:00
pm2001: 處理的時候再把字串轉回json 08/19 23:00
don750421: 無法@@因為這是tablesorter作為page filter傳遞的方式 08/19 23:24
shadowjohn: 我記得有jqURL可以用~ 08/20 14:16