在不加载页面的情况下更改地址栏 [英] Changing the address bar without loading a page
问题描述
另一个n00b问题,是否可以使用JavaScript来操作
地址栏而无需重新加载页面?即我可以添加类似
"?pageId = 1234"在地址栏文本的末尾没有实际更改
当前加载的页面?你能提供一些示例代码吗?
-
爱它,
-Q >
_________________________________________________
Qu ********** @ gmail.com
(用数字替换SixFour给我发电子邮件)
Another n00b question, is it possible with JavaScript to manipulate the
address bar without reloading a page? i.e. can I add something like
"?pageId=1234" at the end of the address bar text without actually changing
the page that is currently loaded? Can you provide some example code?
--
And loving it,
-Q
_________________________________________________
Qu**********@gmail.com
(Replace the "SixFour" with numbers to email me)
推荐答案
Qu0ll说:
Qu0ll said:
>
另一个n00b问题,是否可以使用JavaScript来操作
地址栏而无需重新加载页面?
>
Another n00b question, is it possible with JavaScript to manipulate the
address bar without reloading a page?
Nope。
-
Nope.
--
Qu0ll写道:
Qu0ll wrote:
另一个n00b问题,是否可以使用JavaScript操作
地址栏而无需重新加载页面?
Another n00b question, is it possible with JavaScript to manipulate the
address bar without reloading a page?
不,如果你在发布之前有任何关心* * *你将会知道b $ b。请把它作为新年的决定。
PointedEars
-
var bugRiddenCrashPronePieceOfJunk =(
navigator.userAgent.indexOf(''MSIE 5'')!= -1
&& navigator.userAgent.indexOf(''Mac'')!= -1
)// Plone,register_function.js:16
No, and if you had cared to read *anything* before you posted, you would
have known. Please make it your New Year''s resolution to do so.
PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf(''MSIE 5'') != -1
&& navigator.userAgent.indexOf(''Mac'') != -1
) // Plone, register_function.js:16
" Thomas''PointedEars''Lahn < Po ********* @ web.dewrote in message
news:47 ************ @ PointedEars.de ...
"Thomas ''PointedEars'' Lahn" <Po*********@web.dewrote in message
news:47************@PointedEars.de...
Qu0ll写道:
Qu0ll wrote:
>另一个n00b问题,是否有可能用JavaScript来操纵
地址栏没有重新加载页面?
>Another n00b question, is it possible with JavaScript to manipulate the
address bar without reloading a page?
不,如果你在发布之前有任何关注* *,你会知道
。请将它作为新年的决定。
No, and if you had cared to read *anything* before you posted, you would
have known. Please make it your New Year''s resolution to do so.
谢谢。请把它作为你新年的决心,不要那么脾气暴躁。
-
爱它,
-Q
_________________________________________________
曲****** **** @ gmail.com
(将SixFour替换为数字给我发电子邮件)
Thanks. Please make it your New Year''s resolution to not be so grumpy.
--
And loving it,
-Q
_________________________________________________
Qu**********@gmail.com
(Replace the "SixFour" with numbers to email me)
这篇关于在不加载页面的情况下更改地址栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!