[問題] table sorting
我用angularjs 和smart table
smart table內建sorting
處理單純數字沒問題
但是有辦法我能夠使用sorting
但是在顯示的格子內卻顯示 例如
1千
5千
2萬2千
而不是
1000
5000
22000
我若將數字轉成字串就無法sorting了
另外 若有些資料內容為 null
我想將之轉換成字串 "未提供" 或是 "N/A"
但是sorting的結果是將字串當作最大數字放在前方
我希望這些未提供的字串能永遠出現在sorting的最下端
請問這有辦法做到嗎?
該不會要自己寫sorting吧?
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 207.141.218.17
※ 文章網址: https://www.ptt.cc/bbs/Web_Design/M.1475950774.A.384.html
※ 編輯: suhang (207.141.218.17), 10/09/2016 02:30:52
→
10/09 19:46, , 1F
10/09 19:46, 1F
→
10/09 19:46, , 2F
10/09 19:46, 2F
Web_Design 近期熱門文章
PTT數位生活區 即時熱門文章