将回调更改为匿名函数:
// Set the callback function to run on successvar callback = function () { showGradesBox(grading_company);};
这使您可以将参数传递给内部函数。
编辑:允许ajax响应:
// Set the callback function to run on successvar callback = function (response) { showGradesBox(grading_company, response);};
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)