在Jquery中重定向Default.aspx页面的函数。 [英] the function to redirect the Default.aspx page in Jquery.

查看:70
本文介绍了在Jquery中重定向Default.aspx页面的函数。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想触发该函数来重定向我的default.aspx页面,但我不知道如何在jquery中使用它的语法。可以任何人都可以指导我。



i有代码如下:

I want to fire the function to redirect my default.aspx page but i dont know the syntax how to use it in jquery .can anyone can guide me .

i have the Code as Follows:

$(document).bind("active.idleTimer", function () {
                   // function i want to fire when the user becomes active again
               });





我该怎么写函数来重定向Default.aspx页面。请指导我。



谢谢

Harshal



how should i write the function to redirect the Default.aspx page.please Guide ME.

Thanks
Harshal

推荐答案

(文件).bind(active.idleTimer, function(){
//我希望在用户再次激活时触发的函数
});
(document).bind("active.idleTimer", function () { // function i want to fire when the user becomes active again });





我该怎么写函数来重定向Default.aspx页面。请指导我。



谢谢

Harshal



how should i write the function to redirect the Default.aspx page.please Guide ME.

Thanks
Harshal


在下面试试

try below


document )。bind( active.idleTimer function (){
window location = ' <%= this。 ResolveClientUrl(〜/ Default.aspx)%>';
}
(document).bind("active.idleTimer", function () { window.location = '<%= this.ResolveClientUrl("~/Default.aspx") %>'; }


这篇关于在Jquery中重定向Default.aspx页面的函数。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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