ajax-utils:用于 jQuery ajax 的包装器

时间:2021-06-18 18:56:26
【文件属性】:
文件名称:ajax-utils:用于 jQuery ajax 的包装器
文件大小:2KB
文件格式:ZIP
更新时间:2021-06-18 18:56:26
JavaScript ajax-utils 我们经常使用ajax函数。 但这有点痛苦。 $.ajax({ type: 'POST', // some parameters success: function () { // when success }, error: function () { // when error }, complete: function () { // always } }); AjaxUtils 使您能够编写简单的代码。 var params = { // some parameters for jQuery.ajax // You don't have to write "type", "sucess", "error" or "complete" } AjaxUtils.post(params, fun
【文件预览】:
ajax-utils-master
----.gitignore(3B)
----ajax_utils.js(995B)
----README.md(536B)
----bower.json(448B)

网友评论