{"id":13671915,"url":"https://github.com/webjyh/MDialog","last_synced_at":"2025-04-27T18:31:54.034Z","repository":{"id":18681503,"uuid":"21890629","full_name":"webjyh/MDialog","owner":"webjyh","description":"寻求简单，精简的网页对话框，专注于友好的接口，千里之行，始于足下。","archived":false,"fork":false,"pushed_at":"2014-11-30T02:59:22.000Z","size":285,"stargazers_count":21,"open_issues_count":0,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-11T09:44:16.508Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://demo.webjyh.com/MDialog/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webjyh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-16T07:12:31.000Z","updated_at":"2020-11-25T07:20:12.000Z","dependencies_parsed_at":"2022-09-25T20:11:22.677Z","dependency_job_id":null,"html_url":"https://github.com/webjyh/MDialog","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/webjyh%2FMDialog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webjyh%2FMDialog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webjyh%2FMDialog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webjyh%2FMDialog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webjyh","download_url":"https://codeload.github.com/webjyh/MDialog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251187350,"owners_count":21549621,"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-08-02T09:01:21.950Z","updated_at":"2025-04-27T18:31:53.090Z","avatar_url":"https://github.com/webjyh.png","language":"JavaScript","readme":"# MDialog.js\n\n寻求简单，精简的网页对话框，专注于友好的接口，千里之行，始于足下。\n\n## Demo参考\n\n\u003chttp://demo.webjyh.com/MDialog/\u003e\n\n## Update Ver 2.2.0 (2014-11-30)\n1. 修复 button 方法直接传入 html 不显示的问题\n2. 修复 $M().Msg() 方法下 下样式问题\n\n## Update Ver 2.1.1 (2014-11-04)\n1. 修正 jQuery ui Dialog 样式冲突的问题\n2. 修复锁屏高度计算出错问题\n\n## Update Ver 2.1 (2014-10-30)\n此版本增加了 iframe 载入事件 和 数据相互之间传递，及一些弹窗细节修改\n\n1. 增加 iframe 载入完成后的事件 oniframeload 详情参考API oniframeload 参数\n2. 增加 MDialog 数据之间传递功能 data 参数 详情参考API data 参数\n3. 修改 弹窗弹出 CSS3 动画\n4. 修正 iframe Loading 界面样式出错问题\n\n## Update Ver 2.0  (2014-10-09)\n此版本增加了 iframe 框架功能，及一些弹窗细节修改\n\n1. 增加了弹窗的最小宽和高度\n2. 增加了气泡对话框简洁方法 $M().msg( content ); 详情参考API msg() 方法\n3. 增强引用 iframe 框架功能，在不跨域情况下，弹窗宽高自适应，如有设定宽高，按设定的来\n4. 增加 $M.getIframe(window.name) 方法 用于获取当前 iframe 的弹窗对象 详情参见API iframe 参数\n5. iframe 具体用法可参考 Demo 案例中的 iframe.html 页面\n6. 增加 iframe loading 交互\n7. 废除了$M.iframe() 的方法\n8. 增强了 $M.content() 方法的健壮性，支持 HTMLElement\n\n## Update Ver 1.1  (2014-07-22)\n\n1. 增加 untitle, unclose, iframe 配置参数\n2. 增加 untitle( Boolean ), iframe( URL ) 方法\n3. 支持 AMD的方式 加载  如 require.js\n4. 修正若干 Bug\n5. 新增加的配置参数和方法，请到Demo页查看具体使用方法\n\n## 如何使用插件\n\n```html\n1.务必使用正确的 HTML 文档申明 如：\nXHTML 申明 \u003c!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"\u003e\n或者\nHTML5 申明 \u003c!DOCTYPE HTML\u003e\n\n2.引入文件\n\u003clink rel=\"stylesheet\" href=\"MDialog.css\"\u003e\n\u003cscript type=\"text/javascript\" src=\"MDialog.js\"\u003e\u003c/script\u003e\n```\n\n## 初始化对话框\n\n```javascript\n$M({\n    title: 'MDialog',\n    content:'\u003cp\u003e欢迎使用 MDialog 对话框！\u003c/p\u003e'\n});\n```\n\n更多用法请参考 Demo 页。\n\n## 程序说明\n\n1. 本人也是在学习 JavaScript ，程序在使用时避免不了出现意外的Bug和缺少功能。\n2. 在使用前，请认真阅读插件文档。\n3. 如本插件有幸应用到你的项目中，谢谢你的支持。\n4. 程序兼容性: 理论兼容IE6+，Google Chrome, FireFox，但在IE6下难免会出意料之外的Bug。\n5. 意见反馈: 如有一些使用问题或者插件的Bug，请到 我的博客 里联系我\n\n## 联系作者\n\nBlog：\u003chttp://webjyh.com\u003e \nWeibo：\u003chttp://weibo.com/webjyh/\u003e\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebjyh%2FMDialog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebjyh%2FMDialog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebjyh%2FMDialog/lists"}