https://github.com/helti/winpop
a A simple pop-up box component
https://github.com/helti/winpop
jquery-plugin
Last synced: about 1 month ago
JSON representation
a A simple pop-up box component
- Host: GitHub
- URL: https://github.com/helti/winpop
- Owner: HelTi
- Created: 2017-02-16T13:21:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-16T14:08:56.000Z (over 9 years ago)
- Last Synced: 2025-12-30T21:59:52.706Z (5 months ago)
- Topics: jquery-plugin
- Language: JavaScript
- Size: 128 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
##### A simple pop-up box component

>使用方法:语法 new winpop(opt,function(){})
```javascript
//例:
var win = new winpop({
headercon:'提示',
popdes:'请谨慎操作?'
},function(){
console.log("回调函数");
});
var btn=document.getElementById("open");
btn.addEventListener('click',function(){
win.alertpop();
})
$("#alert").on('click',function(){
win.confimpop();
})
```