Home > php教程 > PHP开发 > body text

jquery popupDialog uses the method of loading jsp page

高洛峰
Release: 2016-12-09 10:10:18
Original
1404 people have browsed it

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,所以只保留代码片段
Copy after login



Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!