在 jquery 中,如何将附加参数传递给事件处理函数?
所以例如
mySaveFunction: function(i) {
var msg = "my message " + i;
$.ajax({
...
success: this.successFunction, // i want to pass msg to successFunction
...
});
successFunction: function(response) {
// do something with msg
},