我直接在flexigrid中添加内容 (请参阅Flexigrid loading data from local json object或Populate Flexigrid with an array or populate it by code)
如何在不通过<<的情况下编辑我被推入的数组? $(“#flex1”)。flexigrid({url:>>功能?
答案 0 :(得分:0)
通过DOM找到解决方案
https://groups.google.com/forum/?fromgroups=#!topic/flexigrid/0oRmeJRAnpc
function getSelectedRow() {
var arrReturn = [];
$('.trSelected').each(function() {
var arrRow = [];
$(this).find('div').each(function() {
arrRow.push( $(this).html() );
});
arrReturn.push(arrRow);
});
return arrReturn;
读为数组