Home  >  Article  >  php教程  >  jquery popupDialog uses the method of loading jsp page

jquery popupDialog uses the method of loading jsp page

高洛峰
高洛峰Original
2016-12-09 10:10:181384browse

Looks like this:

<pre name="code" class="html">    //加载全部菜单
        initAllMenuPage:function(obj){
            var select = $(&#39;#g402880312788b836012788b99cb0010d tbody tr.selected&#39;).attr(&#39;value&#39;);
            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,所以只保留代码片段



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn