$('#myModal').modal('show') //显示$('#myModal').modal('hide')隐藏

你这样试试,这是官方文档的写法 $('#myModal').modal('show') //显示$('#myModal').modal('hide')隐藏

//重复点击的隐藏显示有一个很更方便的写法$('#myModal').modal('toggle')

s := '$("#cancheck_form").find("[name=checkNum]").val("' + IntToStr(iCheckNum) + '");' +
'var g = "cancheck.htm";' +
'var h = $("#cancheck_form").serialize();' +
'var j = $("#cancheck_form").find("[name=saleCorpCode]").val();' +
'var f = $("#cancheck_form").find("[id=cancheck_ordercode_span]").text();' +
'$("#cancheck_btn").attr("disabled", "disabled");' +
'$.ajax({type: "POST",url: g,data: h, ' +
'success: function(a) {' +
' var e = a;' +
' if (e.success) {' +
' alert(e.message);' +
' $("#modalCanCheck").modal("hide");' +
' $("#datagrid").grid("reload");' +
' var d = true;' +
' if (d) {' +
' var b = "getPrintRightIfCheck.htm";' +
' var c = "&corpCode=" + j + "&orderCode=" + f;' +
' if (e.checkRecordId != undefined && e.checkRecordId != null) {' +
' c = c + "&checkRecordId=" + e.checkRecordId' +
' }' +
' $.ajax({type: "POST",url: b,data: c,' +
' success: function(l) {' +
' if (l != null && l != "") {' +
' alert("核销成功打印>" + l);' +
' }' +
' }' +
' })' +
' }' +
' } else {' +
' alert("核销提交失败>" + e.message);' +
' $("#modalCanCheck").modal("hide")' +
' }' +
'}});';
chrom.Browser.MainFrame.ExecuteJavaScript(s,'about:blank', 0);

猜你喜欢

转载自www.cnblogs.com/bwdblogs/p/10836991.html