系统内置弹出框
由 0x400 发布于
###info
```
this.form.alert("info","确认框","确认一下",250,100)
```
###success
```
this.form.alert("success","确认框","确认一下",250,100)
```
###error
```
this.form.alert("error","确认框","确认一下",250,100)
```
###warn
```
this.form.alert("warn","确认框","确认一下",250,100)
```
## notice
###info
```
this.form.notice("this is my information", "info");
```
###success
```
this.form.notice("this is my information", "success");
```
###error
```
this.form.notice("this is my information", "error");
```
###warn
```
this.form.notice("this is my information", "warn");
```
##confirm
###info
```
var _self = this;
this.form.confirm("info", "删除确认", "您确定要删除吗?", 300, 100,function(){
_self.form.notice("删除成功","info");
this.close();
}, function(){
_self.form.notice("取消删除","info");
this.close();
});
```
###success
```
var _self = this;
this.form.confirm("success", "删除确认", "您确定要删除吗?", 300, 100,function(){
_self.form.notice("删除成功","info");
this.close();
}, function(){
_self.form.notice("取消删除","info");
this.close();
});
```
###error
```
var _self = this;
this.form.confirm("error", "删除确认", "您确定要删除吗?", 300, 100,function(){
_self.form.notice("删除成功","info");
this.close();
}, function(){
_self.form.notice("取消删除","info");
this.close();
});
```
###warn
```
var _self = this;
this.form.confirm("warn", "删除确认", "您确定要删除吗?", 300, 100,function(){
_self.form.notice("删除成功","info");
this.close();
}, function(){
_self.form.notice("取消删除","info");
this.close();
});
```
评论