{"id":20926195,"url":"https://github.com/weidemo/miniajax","last_synced_at":"2025-05-13T17:33:33.355Z","repository":{"id":82039140,"uuid":"119618132","full_name":"WeideMo/miniAjax","owner":"WeideMo","description":"🚀A mini Ajax library provides Ajax, jsonp and ready features for simple web applications.","archived":false,"fork":false,"pushed_at":"2019-08-05T08:45:00.000Z","size":6,"stargazers_count":68,"open_issues_count":0,"forks_count":8,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-02T05:23:02.248Z","etag":null,"topics":["ajax","jsonp","mini-ajax-library"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WeideMo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-31T01:36:14.000Z","updated_at":"2025-02-10T17:49:42.000Z","dependencies_parsed_at":"2023-05-04T05:02:17.657Z","dependency_job_id":null,"html_url":"https://github.com/WeideMo/miniAjax","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WeideMo%2FminiAjax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WeideMo%2FminiAjax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WeideMo%2FminiAjax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WeideMo%2FminiAjax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WeideMo","download_url":"https://codeload.github.com/WeideMo/miniAjax/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253993712,"owners_count":21996365,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ajax","jsonp","mini-ajax-library"],"created_at":"2024-11-18T20:37:13.130Z","updated_at":"2025-05-13T17:33:33.347Z","avatar_url":"https://github.com/WeideMo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# miniAjax\nA mini Ajax library provides Ajax, jsonp and ready features for simple web applications.\n\n![miniAjax](https://www.moweide.com/miniAjax.png)\n\n## Browsers support\n\n| ![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/src/opera/opera_48x48.png) | ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) | ![IE](https://raw.github.com/alrra/browser-logos/master/src/archive/internet-explorer_9-11/internet-explorer_9-11_48x48.png) |\n| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |\n| ✔                                        | ✔                                        | ✔                                        | ✔                                        | ✔                                             | ✔  \n\n## Usage\n\nThere are only 3 interfaces in miniAjax, including Ajax, jsonp and ready functions:\n\n### ajax\n\n```javascript\najax({\n    url: \"./testXhr.php\",                       //links to server\n    type: \"POST\",                               //request method\n    data: { name: \"WeideMo\", age: 26 },         //request params\n    dataType: \"json\",                           //received dataType\n    success: function (response, xml) {\n        // do something when success\n    },\n    fail: function (status) {\n        // do something when fail\n    }\n});\n```\n\n### jsonp\n\n```javascript\njsonp({\n    url:\"https://github.com/WeideMo/\",  //links to server\n    callback:\"callback\",                //reception callback name negotiated with the backend-server\n    data:{id:\"1000120\"},                //request params\n    success:function(json){\n        // do something when success\n    },\n    fail:function(){\n        // do something when fail\n    },\n    time:10000                          //custom timeout\n})\n```\n\n### ready\n\n```javascript\nready(function(){\n    // do something when page ready\n})\n```\n\n## Fetures\n\n### High coverage of browsers\n\nAlmost support all of the browsers, even the original IE series.\n\n### light Weight\n\nThe compressed version is less than 2K, if you use gzip, it will be less than 1K.\n\n### Pure\n\nMiniAjax is just the basic requirement to meet web development.It's only responsible for three things: `Ajax` , `jsonp` and `ready`.\n\n\n## More\n\nYou can get more principles and usage -\u003e[https://github.com/WeideMo/jsonp](https://github.com/WeideMo/jsonp)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweidemo%2Fminiajax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweidemo%2Fminiajax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweidemo%2Fminiajax/lists"}