【发布时间】:2012-06-18 13:36:54
【问题描述】:
我有 2 个 html 页面,第一个是登录页面,第二个,当我登录时我重定向到主页,必须在加载时执行,仅在登录后第一次加载页面时执行此方法必须打电话。当我重新加载或刷新此方法时再次调用。
1- can i refresh the page without calling the onload method? if yes how?
或
2- can i redirect to a specific method in the page to avoid calling the onload method every time? if yes how
或
3- can i write any thing in the onload method that keep me calling the method only at the first time? if yes how
注意: 我知道在 web 应用程序中,每次重新加载页面时都必须调用 load 函数,但是我必须采取任何解决方案来解决这个问题吗?
【问题讨论】:
-
您指的是页面中的方法。这是 ASP.NET 吗?
-
我假设你不使用 servlet 对吗!?
-
不,它不是 ASP.NET,我不正确使用 servlet
标签: javascript jquery html redirect