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.
我环顾四周,发现 flexigrid 有一个 onerror 函数,但我似乎可以找到如何使用它,而且我知道如何使用它,所以我不必修改 flexigrid.js
所有需要做的就是在 flexigrid 选项中定义它
$('#flex').fliexigrid({ onError: function(data){ // do stuff here } });
你可以像这样使用它:
onError: function (data){ for (var i in data){ alert("Header: " + i +"\nMessage: " + data[i]); } }