参考网址:http://stackoverflow.com/questions/18134913/jquery-datatabletabletool-custom-buttons-calling-events

主要代码如下:

注意:sExtends

"oTableTools": {
                        "sRowSelect": "multi",
                        "aButtons": [  
                               {"sExtends": "new_record","sButtonText": "Add"},
                               {"sExtends": "select","sButtonText": "Delete Recods",
                                 "fnClick": function (nButton, oConfig, oFlash) {
                                   //delete stuff comes here 
                                   alert('test');
                                           }

                                        }
                                    ]
                        }

 

相关文章:

  • 2021-11-09
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-14
  • 2022-12-23
  • 2021-09-04
猜你喜欢
  • 2021-05-15
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2021-07-04
  • 2022-12-23
相关资源
相似解决方案