$('#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);
随机推荐
- SpringBoot yml文件语法
SpringBoot提供了大量的默认配置,如果要修改默认配置,需要在配置文件中修改. SpringBoot默认会加载resource下的配置文件: application*.yml applicati ...
- 条件语句(if语句)的用法
if语句是实现分支结构的常用分支语句之一,另外还有条件运算符.switch语句等. if语句的功能是:根据给定条件,选择程序执行方向. if语句的基本格式 “if语句”又称条件语句,其基本格式为: ...
- 第一个Tornado程序
环境:Python3.8 系统:win10 1903 工具:pycharm2019.3 import tornado.web # web服务基本功能都封装在此模块中 import tornado.io ...
- elk单机安装部署
es 下载地址:wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.1.0-linux-x86_64.t ...
- python笔记心得
1.字典的映射 day=10# def get_sunday():# return 'Sunday'# def get_monday():# return 'monday'# def get_tues ...
- 8 HTML DOM 元素的查找与改变&改变CSS样式&HTML事件
HTML DOM(Document Object Model)文档对象模型 当网页被加载时,浏览器会创建页面的文档对象模型. HTMLDOM 定义了用于HTML的一系列标准的对象.通过DOM,你可以访 ...
- 【原】nginx配置文件
一:下载nginx方式 1.yum install nginx 2.源码安装 二:学习网址 nginx documentation — DevDocs 三:配置文件信息 server { listen ...
- 【原】python常用模块
1.os模块 对操作系统中文件/目录等进行操作 2.sys模块 对python版本进行操作 3.正则re模块 4.datetime,date,time模块 5.hashlib,md5模块 hashli ...
- Python流程控制-2 条件判断
条件判断 条件判断是通过一条或多条判断语句的执行结果(True或者False)来决定执行的代码块. 在Python语法中,使用if.elif和else三个关键字来进行条件判断. if语句的一般形式如下 ...
- python打印日志log
整理一个python打印日志的配置文件,是我喜欢的格式. # coding:utf-8 # 2019/11/7 09:19 # huihui # ref: import logging LOG_FOR ...