Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个网格,我可以在其中访问 rowData
var rowData = $('#gridtbl').getRowData(rowId);
但是,并非 rowData 中的所有值都是必需的,我需要将其传递给控制器。如何操作 ArrayData 以从中删除某个元素?
提前致谢。
您可以使用splice从数组中删除元素。
splice
var list = [1,2,3]; alert(list.splice(1, 1)); // will show 2 alert(list):