任何人都可以帮助我理解这一点吗? [英] Can any one help me understanding this?

查看:104
本文介绍了任何人都可以帮助我理解这一点吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

function submitSearch()
            {
                if(validatePSInputFields())
                {
                    reportsPSForm.generateButton.disabled=true;
                    <%
                        PortletURL reportsPSURL=renderResponse.createActionURL();
                        reportsPSURL.setParameter("ACT","reportsPS");
                    %>
                    document.reportsPSForm.action="<%=reportsPSURL.toString()%>";
                    document.reportsPSForm.submit();
                  /*  if(navigator.appName==''Microsoft Internet Explorer''){
                        PaySlipReport = window.open(''<%=reportsPSURL.toString()%>'',''PaySlipReport'',''WIDTH=800,HEIGHT=500,scrollbars=yes,resizable=yes'');
                        }
                    else{
                        PaySlipReport = window.open(''<%=reportsPSURL.toString()%>'',''PaySlipReport'',''WIDTH=800,HEIGHT=500,scrollbars=yes,resizable=yes'');
                        }PaySlipReport.moveTo(40,40);*/
                   // document.reportsPSForm.submit();
                }
            }

推荐答案

那很简单.我假设您已经在动态网页中编写的一段JavaScript中看到了此功能. <%= %>中的部分将特定值写入输出. <% %>之间的部分是在当前页面呈现周期的上下文中执行的方法.
That one''s fairly straightforward. I assume that you have seen this function in a piece of JavaScript written out in a dynamic web page. The parts that are in <%= %> write that particular value to the output. The sections that are between <% %> are methods that are executed in the context of the current page render cycle.


这篇关于任何人都可以帮助我理解这一点吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆