GB-dialog.js
DEMO
gbDialog.show({
title: '温馨提示',
content: '今天过完就是明天'
});
gbDialog.show({
title: '温馨提示',
content: '今天过完就是明天',
btnConfirm: 'OK',
btnCancel: false
});
gbDialog.show({
content: '今天过完就是明天',
btnCancel: false
});
gbDialog.show({
title: '温馨提示',
content: '今天过完就是明天',
btnClose: true
});
gbDialog.show({
title: '温馨提示',
content: '今天过完就是明天',
confirm: function() {
alert('确定回调');
},
cancel: function() {
alert('取消回调');
}
});
gbDialog.show({
id: 'dialog1',
confirm: function() {
alert('再考虑一下?');
}
});
gbDialog.show({
id: 'dialogLogin',
verify: function() {
if (!email.value) {
alert('请输入ID/Email');
return false;
}
return true;
},
confirm: function() {
alert('Ajax登陆');
}
});