{"id":19345547,"url":"https://github.com/future-team/jq-modal","last_synced_at":"2026-04-09T20:50:40.211Z","repository":{"id":57281936,"uuid":"60247489","full_name":"future-team/jq-modal","owner":"future-team","description":"jquery 模态框","archived":false,"fork":false,"pushed_at":"2017-02-17T08:00:28.000Z","size":87,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-19T17:46:48.789Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/future-team.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-02T08:44:01.000Z","updated_at":"2017-02-17T08:00:29.000Z","dependencies_parsed_at":"2022-09-18T16:52:18.579Z","dependency_job_id":null,"html_url":"https://github.com/future-team/jq-modal","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/future-team%2Fjq-modal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fjq-modal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fjq-modal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fjq-modal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/future-team","download_url":"https://codeload.github.com/future-team/jq-modal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240452175,"owners_count":19803578,"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":[],"created_at":"2024-11-10T04:06:57.804Z","updated_at":"2026-04-09T20:50:40.151Z","avatar_url":"https://github.com/future-team.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jq-modal\n\n模态框（jquery插件）\n\n\n## 使用\n\n* 模拟系统弹框\n\n```js\n\n    import {alert,confirm} from 'jq-modal';\n    \n    alert('test');\n    \n    confirm('Sure you want to exit？',{\n        successCallback:function(){\n            console.dir('successCallback');\n\n        },\n        cancelCallback:function(){\n            console.dir('cancelCallback');\n        }\n    });\n   \n```\n\n* 自定义弹框\n\n```html\n\n    \u003cdiv id=\"dialog-test\" style=\"width: 500px;height: 300px;display: none;\"\u003e\n        \u003cdiv class=\"header\"\u003e自定义标题\u003c/div\u003e\n        \u003cdiv class=\"content\"\u003e\n            自定义内容\n        \u003c/div\u003e\n        \u003cdiv class=\"footer\"\u003e\n            自定义button\n        \u003c/div\u003e\n    \u003c/div\u003e\n```\n\n```js\n\n    import {mask} 'jq-modal';\n    \n    //jquery plugs\n    $('#dialog-test').mask({\n        closeCallback:()=\u003e{\n            console.dir('关闭2');\n        }\n    });\n    \n    //or\n    mask($('#dialog-test'),{\n        closeCallback:()=\u003e{\n            console.dir('关闭2');\n        }\n    });\n```\n\n## 示例查看\n\n下载源码至本地后执行\n\n```js\n\n    npm install \n    npm run demo\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuture-team%2Fjq-modal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuture-team%2Fjq-modal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuture-team%2Fjq-modal/lists"}