iosOverlay.js 用于在 Web 项目中实现 iOS 风格的通知和提示效果。为了防止图标加载的时候闪烁,你需要预加载的图像资源。不兼容 CSS 动画的浏览器需要 jQuery 支持。浏览器兼容:IE7+, Google Chrome, Firefox, Opera, Desktop Safari, Mobile Safari — iPhone & iPad。
| onbeforeshow | noop(); | Function |
| onshow | noop(); | Function |
| onbeforehide | noop(); | Function |
| onhide | noop(); | Function |
| text | null | String |
| icon | null | String (file path) |
| spinner | null | Spinner (via Spin.js) |
| duration | null | Number (ms) |
| hide | 执行此方法将隐藏提示通知.// notification is called var notification = ...; // something happens // fade out notification and destroy on complete notification.hide(); |
| update | 执行将更新提示通知的内容。// notification is called var notification = ...; // something happens // notification is updated notification.update({ text: "Success!", icon: "img/smiley.png" }); |
特别申明:
本站所有资源都是由网友投稿发布,或转载各大下载站,请自行检测软件的完整性!
本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!
如有侵权请联系我们删除下架,联系方式:lei1294551502@163.com