在javascript中隐藏url参数 [英] Hide url parameters in javascript

查看:131
本文介绍了在javascript中隐藏url参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用这个:

document.location ='my different asp.net page?=myparams'

是否可以在浏览器上显示的URL中隐藏参数的值?

Is there a way to hide the values of the params in the URL displayed on the browser?

我知道我可以使用隐藏的Form值,并且我可以加密这些值(如果这里没有乐趣,我会这样做).

I know I could use hidden Form values and I know I can encrypt the values (which is what I will do if no joy here).

是否有更简单的方法?也许通过JQuery.

Is there a simpler tidier way of doing this? Perhaps via JQuery.

推荐答案

如果您只是试图在浏览器中隐藏地址栏中的url参数,则可以使用

If you are just trying to hide the url parameters from the address bar in the browser then you could use an iframe.

这篇关于在javascript中隐藏url参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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