/**
* Created by xxh on 2018/2/13.
*/
var funSuccess = function () {}
var funCancel = function(){}
function clickOK() {
funSuccess();
}
function clickCancel() {
funCancel();
}
function showAlert(content, title, btnSuccessText, btnCancelText, success, cancel) {
if(!title)
title = '提示';
if(!content) {
content = '您确定要删除吗?';
}
if(!btnSuccessText) {
btnSuccessText = "确定";
}
if(!btnCancelText) {
btnCancelText = "取消";
}
if(success) {
funSuccess = success;
}
if(cancel) {
funCancel = cancel;
}
var modalHtml = '\
\
';
\
\
\
\
\
\
×\
'+title+'
\
'+content+'
\
\
\
'+btnCancelText+'\
'+btnSuccessText+'\
$('body').append(modalHtml);
$('#myModal').modal();
}