{name:'cityId',index:'cityId',sorttype:'int',width:0,hidden:true,key:true},

一定要将你的主键值的的key设置为true,这样在使用时var ids=$('#cityInforList').jqGrid('getDataIDs');获得所选行的id值,这样你获得的id才是你要获得的数据的id而不是

jqGrid的行号。

相关文章:

  • 2022-12-23
  • 2021-09-05
  • 2021-08-13
  • 2022-12-23
  • 2021-06-27
  • 2022-12-23
  • 2021-06-26
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-20
  • 2022-12-23
  • 2021-07-06
  • 2021-11-07
  • 2021-06-03
相关资源
相似解决方案