如下所示:
jQuery 1.12.4是jQuery 1.x系列的最后一个正式稳定版本,由jQuery团队于2016年发布。该版本主要面向需要兼容旧版浏览器环境的网站和Web应用,尤其适用于仍需支持Internet Explorer 6、Internet Explorer 7、Internet Explorer 8等老旧浏览器的项目。
<pre name="code" class="html"> //加载全部菜单
initAllMenuPage:function(obj){
var select = $('#g402880312788b836012788b99cb0010d tbody tr.selected').attr('value');
if(select){
popupDialog(obj.id+"_dialog","模块信息",globalURL+"web/default/model_child.jsp","700","650");
}else{
alert("请选择一条记录");
}
},
注:jsp中html相关属性都去掉,head、body、头部文件
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
不去掉这些东西,在加载js的时候会出现问题,第一次加载不会出现问题,当你第二次加载js时,他会走缓存在页面上的js,所以只保留代码片段

















