双击子表自动判定开闭功能
//CHILD TABLE DEFINITION FOR "PHONE NUMBERS" Phones: { title: '', '5%', sorting: false, edit: false, create: false, display: function (studentData) { var $img = $('<img src="/Content/images/Misc/phone.png" title="Edit phone numbers" />'), //Create an image that will be used to open child table parentTable = $("#StudentTableContainer"); //Open | Close child table when user clicks the image $img.click(function(){ var tr = $(this).parents("tr"), isChildRowOpen = parentTable.jtable("isChildRowOpen", tr ); if( isChildRowOpen ){ $( parentTable.jtable("getChildRow", tr ) ).slideUp(); return; } // some another code } } }