1. function _getIds(selectedIds, targetType){
  2. var ids = "";
  3. var $box = targetType == "dialog" ? $.pdialog.getCurrent() : navTab.getCurrentPanel();
  4. $box.find("input:checked").filter("[name='"+selectedIds+"']").each(function(i){ //注意each
  5. var val = $(this).val();
  6. ids += i==0 ? val : ","+val; //重点
  7. });
  8. return ids;
  9. }





相关文章:

  • 2021-09-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-31
  • 2021-11-14
  • 2021-08-13
猜你喜欢
  • 2022-12-23
  • 2021-09-29
  • 2022-01-01
  • 2021-11-14
  • 2021-09-07
  • 2021-06-17
  • 2021-12-24
相关资源
相似解决方案