通过包含参数的回调函数?

通过包含参数的回调函数?,第1张

通过包含参数的回调函数

将回调更改为匿名函数:

// 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);};


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5174046.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-18
下一篇 2022-11-18

发表评论

登录后才能评论

评论列表(0条)

保存