链接在页面的第二个实例中不起作用,如果通过同一链接进入该页面,则该链接会向带有长 URL 查询的页面发送一个链接
我正在处理很长的 URL,或更具体地说是 URL 查询,并且遇到了问题。
如果我做一个<一个href..>使用我附加到这篇文章底部的 URL,然后单击它,它会提供与我所在的页面相同的页面,但具有很长的 URL 查询,因为它是同一页面,因此包含相同的 <一个href..>使用相同的 URL,现在如果我再次单击该链接,它不会将我发送到该页面的新实例,它不会执行任何操作,为什么会这样做?我希望我的链接能够正常工作,无论它是页面的哪个实例。
因此,基本上我有一个页面,其中有一个链接到同一页面的链接,但带有查询,如果通过该链接进入页面,则该链接仅在页面的第一个实例中起作用,而在第二个实例中不起作用。
我只在 Firefox 和 Chromium 中测试过这一点。
我在这里举了一个例子: http://173.45.231.202/hypnotic/link_problem.html< /a> ,有问题的 URL 如下..
2263915974| 54.54971467809152|-94.48287736084026|2.5881904510252065|-124.4828 7736084026|-2.5881904510252056|-115.51712263915974&多边形|0| 1|#FFFFFF|38.965754721680526|350|1|1|1|#000000|1.5|350|57.137905129116724|-54.54971467809152|-94.48287736084026 |-49.37333377604111|-85.51712263915974|2.5881904510252074|-115.51712263915974|-2.588190451025209|-124.48287736084026&多边形| 0|1|#FFFFFF|120|350|1|1|1|#000000|1.5|350|10.352761804100828|-5.176380902050414| 6.339028942455745e-16|5.176380902050414|-1.267805788491149e-15|5.176380902050414|-120|-5.176380902050414|-120&多边形|0|1|#FF FFFF|10.352761804100822|350|1|1|1|#000000|1.5|350| 103.92304845413263|-51.96152422706631|-95.17638090205041|-51.96152422706631|-84.82361909794959|51.96152422706631|-84.8236 1909794959|51.96152422706631|-95.17638090205041&多边形|0|1|#FFFFFF|95.17638090205041|350|1|1|1|#000000|1.5|350 |60.92727894874685|-4.482877360840267|-2.5881904510252056|4.482877360840268|2.5881904510252034|56.44440158790658|-87.41180 954897479|47.47864686622604|-92.58819045102521&多边形|0|1|#FFFFFF|59.99999999999999|350|1|1|1|#000000|1.5|350| 10.352761804100822|46.7851433250159|-30.000000000000007|57.137905129116724|-30.000000000000007|57.137905129116724|-90|46。 7851433250159|-90&多边形|0|1|#FFFFFF|95.17638090205043|350|1|1|1|#000000|1.5|350|60.92727894874685| -47.47864686622604|-92.58819045102521|-56.44440158790658|-87.41180954897479|-4.482877360840266|2.5881904510252065|4.482877 360840267|-2.588190451025205&多边形|0|1|#FFFFFF|59.99999999999999|350|1|1|1|#000000|1.5|350|10.352761804100822 |-57.137905129116724|-30.000000000000007|-46.7851433250159|-30.000000000000007|-46.7851433250159|-90|-57.137905129116724|-9 0&多边形|0|1|#FFFFFF|10.352761804100826|350|1|1|1|#000000|1.5|350 |103.92304845413263|-51.96152422706631|-35.17638090205042|-51.96152422706631|-24.823619097949592|51.96152422706631|-24.823 619097949592|51.96152422706631|-35.17638090205042&多边形|0|1|#FFFFFF|38.96575472168054|350|1|1|1|#000000|1.5| 350|57.137905129116724|54.54971467809152|-25.51712263915974|49.37333377604111|-34.48287736084027|-2.5881904510252047|-4.4 82877360840267|2.5881904510252056|4.482877360840267&多边形|0|1|#FFFFFF|59.99999999999999|350|1|1|1|#000000|1.5|350 |10.35276180410083|46.78514332501591|29.999999999999986|57.13790512911673|29.999999999999986|57.137905129116724|-30.000000 000000007|46.7851433250159|-30.000000000000007&多边形|0|1|#FF FFFF|38.96575472168054|350|1|1|1|#000000|1.5|350|57.137905129116724 | -2.5881904510252083|4.4828773608402654|2.5881904510252074|-4.482877360840266|-49.37333377604111|-34.48287736084028|-54.549 71467809152|-25.51712263915974&多边形|0|1|#FFFFFF|60.000000000000036|350|1|1|1|#000000|1.5|350|10.35276180410083 |-57.13790512911672|30.00000000000003|-46.785143325015895|30.00000000000003|-46.7851433250159|-30.000000000000007|-57.1379 05129116724|-30.000000000000007&多边形|0|1|#FFFFFF|38.96575472168051|350|1|1|1|#000000|1.5|350| 57.13790512911673|49.373333776041115|34.48287736084025|54.549714678091526|25.517122639159716|2.5881904510252065|-4.482877 360840266|-2.5881904510252056|4.482877360840266&多边形|0|1|#FFFFFF|60|350|1|1|1|#000000|1.5|350|10.352761804100835|- 5.176380902050407|60|5.176380902050421|60|5.176380902050414|-1.1493874523372613e-15|-5.176380902050414|6.339028942455745e -16&多边形|0|1|#FFFFFF|38.965754721680554|350|1|1|1|#000000|1.5|350| 57.13790512911673|-54.54971467809152|25.517122639159762|-49.37333377604109|34.48287736084029|2.588190451025209|4.48287736 08402654|-2.588190451025209|-4.4828773608402654&多边形|0|1|#F FFFFF|10.352761804100869|350|1|1|1|#000000|1.5|350|103.923048454132 63 |-51.961524227066306|24.823619097949614|-51.961524227066306|35.17638090205044|51.96152422706632|35.1763809020504|51.96152422706632|24.82361909794957&polygon|0|1|#FFFFFF|38.96575472168054|350|1|1|1|#000000|1.5|350|57.137905129116724|-2.5881904510252016 |55.51712263915974|2.588190451025217|64.48287736084026|54.549714678091526|34.48287736084025|49.37333377604111|25.517122639 15972&多边形|0|1|#FFFFFF|95.17638090205043|350|1|1|1|#000000|1.5|350|60.92727894874683|-4.482877360840252|117.41180954897479| 4.482877360840283 |122.5881904510252|56.44440158790658|32.58819045102519|47.47864686622605|27.41180954897478&多边形|0|1|#FFFFFF|38.96575472168050 4|350|1|1|1|#000000|1.5|350|57.137905129116724|-2.5881904510251963|64.48287736084026|2.588190451025211|55.51712263915973|- 49.3733337760411|25.51712263915976|-54.54971467809151|34.4828773608403&多边形|0|1|#FFFFFF|95.1763809020504|350|1|1|1|#000000|1 .5|350|60.927278948746846|-4.48287736084025|122.58819045102521|4.4828773608402805|117.41180954897479|-47.47864686622604| 27.41180954897482|-56.44440158790657|32.588190451025234&多边形|0|1|#FFFFFF|60|350|1|1|1|#000000|1.5|350|10.352761804100837|-5。 176380902050399|120|5.176380902050429|120|5.176380902050421|60|- 5.176380902050407|60&圆|0|1|#FFFFFF|40|350|1|1|1|#000000|2.5|230|40|&圆|0|1|#FFFFFF|40|401.9615242270663|1|1 |1|#000000|2.5|260|40|&圆|0|1|#FFFFFF|40|298.0384757729337|1|1|1|#000000|2.5|260|40|&圆|0|1| #FFFFFF|40|401.9615242270663|1|1|1|#000000|2.5|320|40|&圆|0|1|#FFFFFF|40|298.0384757729337|1|1|1|#000000|2.5|320| 40|&圆|0|1|#FFFFFF|40|350|1|1|1|#000000|2.5|350|40|&圆|0|1|#FFFFFF|40|401.9615242270663|1|1 |1|#000000|2.5|380|40|&圆|0|1|#FFFFFF|40|298.0384757729337|1|1|1|#000000|2.5|380|40|&圆|0|1| #FFFFFF|40|350|1|1|1|#000000|2.5|410|40|&圆|0|1|#FFFFFF|40|350|1|1|1|#000000|2.5|470| 40|&圆|0|1|#FFFFFF|40|350|1|1|1|#000000|2.5|290|40|&文本|0|1|rgb(0,0,0)|DejaVu %20Sans|20|100|40|353.5|0|0.5|0.5|null|1||230.35|37|&text|0|1|rgb(0,0,0)|DejaVu%20Sans|20|100 |40|405.4615242270663|0|0.5|0.5|null|1|%E2%9A%8A%7C260.35|37|&文本|0|1|rgb(0,0,0)|DejaVu%20Sans|20 |100|40|301.5384757729337|0|0.5|0.5|null|1|%E2%9A%8B%7C260.35|37|&text|0|1|rgb(0,0,0)|DejaVu%20Sans |20|100|40|405.4615242270663|0|0.5|0.5|null|1|%E2%98%B1%7C320.35|37|&text|0|1|rgb(0,0,0)|DejaVu %20Sans|20|100|40|301.5384757729337|0|0.5|0.5|null|1|%E2%98%B3%7C320.35|37|&text|0|1|rgb(0,0,0) |DejaVu%20Sans|20|100|40|353.5|0|0.5|0.5|null|1|%E2%98%B2%7C350.35|37|&text|0|1|rgb(0,0, 0)|DejaVu%20Sans|20|100|40|405.4615242270663|0|0.5|0.5|null|1|%E2%98%B6%7C380.35|37|&text|0|1|rgb(0, 0,0)|DejaVu%20Sans|20|100|40|301.5384757729337|0|0.5|0.5|null|1|%E2%98%B4%7C380.35|37|&text|0|1|rgb( 0,0,0)|DejaVu%20Sans|20|100|40|353.5|0|0.5|0.5|null|1|%E2%98%B5%7C410.35|37|&text|0|1| rgb(0,0,0)|DejaVu%20Sans|20|100|40|353.5|0|0.5|0.5|null|1|%E2%98%B7%7C470.35|37|&text|0| 1|rgb(0,0,0)|DejaVu%20Sans|20|100|40|353.5|0|0.5|0.5|null|1|%E2%98%B0%7C290.35|37|
什么给?
I'm working with really long URLs or more specifically URL Queries and I've encountered a problem.
If I do a < a href..> with the URL that I've appended to the bottom of this post and click it it gives me the same page as I was on but with a long URL Query, since it's the same page it contains this same < a href..> with the same URL, now if I click that link again it does NOT send me to a new instance of that page, it does nothing, why would it do that? I want my links to work no matter what instance of the page it is.
So basically I have a page with a link that links to the same page but with a query, this link only works in the first instance of the page, not the second, if entering the page through that link.
I've only tested this in Firefox and Chromium.
I've put up an example of this here: http://173.45.231.202/hypnotic/link_problem.html , the URL in question is the following..
link_problem.html?polygon|0|1|#FFFFFF|38.965754721680526|350|1|1|1|#000000|1.5|350|57.137905129116724|49.37333377604111|-85.51712263915974|54.54971467809152|-94.48287736084026|2.5881904510252065|-124.48287736084026|-2.5881904510252056|-115.51712263915974&polygon|0|1|#FFFFFF|38.965754721680526|350|1|1|1|#000000|1.5|350|57.137905129116724|-54.54971467809152|-94.48287736084026|-49.37333377604111|-85.51712263915974|2.5881904510252074|-115.51712263915974|-2.588190451025209|-124.48287736084026&polygon|0|1|#FFFFFF|120|350|1|1|1|#000000|1.5|350|10.352761804100828|-5.176380902050414|6.339028942455745e-16|5.176380902050414|-1.267805788491149e-15|5.176380902050414|-120|-5.176380902050414|-120&polygon|0|1|#FFFFFF|10.352761804100822|350|1|1|1|#000000|1.5|350|103.92304845413263|-51.96152422706631|-95.17638090205041|-51.96152422706631|-84.82361909794959|51.96152422706631|-84.82361909794959|51.96152422706631|-95.17638090205041&polygon|0|1|#FFFFFF|95.17638090205041|350|1|1|1|#000000|1.5|350|60.92727894874685|-4.482877360840267|-2.5881904510252056|4.482877360840268|2.5881904510252034|56.44440158790658|-87.41180954897479|47.47864686622604|-92.58819045102521&polygon|0|1|#FFFFFF|59.99999999999999|350|1|1|1|#000000|1.5|350|10.352761804100822|46.7851433250159|-30.000000000000007|57.137905129116724|-30.000000000000007|57.137905129116724|-90|46.7851433250159|-90&polygon|0|1|#FFFFFF|95.17638090205043|350|1|1|1|#000000|1.5|350|60.92727894874685|-47.47864686622604|-92.58819045102521|-56.44440158790658|-87.41180954897479|-4.482877360840266|2.5881904510252065|4.482877360840267|-2.588190451025205&polygon|0|1|#FFFFFF|59.99999999999999|350|1|1|1|#000000|1.5|350|10.352761804100822|-57.137905129116724|-30.000000000000007|-46.7851433250159|-30.000000000000007|-46.7851433250159|-90|-57.137905129116724|-90&polygon|0|1|#FFFFFF|10.352761804100826|350|1|1|1|#000000|1.5|350|103.92304845413263|-51.96152422706631|-35.17638090205042|-51.96152422706631|-24.823619097949592|51.96152422706631|-24.823619097949592|51.96152422706631|-35.17638090205042&polygon|0|1|#FFFFFF|38.96575472168054|350|1|1|1|#000000|1.5|350|57.137905129116724|54.54971467809152|-25.51712263915974|49.37333377604111|-34.48287736084027|-2.5881904510252047|-4.482877360840267|2.5881904510252056|4.482877360840267&polygon|0|1|#FFFFFF|59.99999999999999|350|1|1|1|#000000|1.5|350|10.35276180410083|46.78514332501591|29.999999999999986|57.13790512911673|29.999999999999986|57.137905129116724|-30.000000000000007|46.7851433250159|-30.000000000000007&polygon|0|1|#FFFFFF|38.96575472168054|350|1|1|1|#000000|1.5|350|57.137905129116724|-2.5881904510252083|4.4828773608402654|2.5881904510252074|-4.482877360840266|-49.37333377604111|-34.48287736084028|-54.54971467809152|-25.51712263915974&polygon|0|1|#FFFFFF|60.000000000000036|350|1|1|1|#000000|1.5|350|10.35276180410083|-57.13790512911672|30.00000000000003|-46.785143325015895|30.00000000000003|-46.7851433250159|-30.000000000000007|-57.137905129116724|-30.000000000000007&polygon|0|1|#FFFFFF|38.96575472168051|350|1|1|1|#000000|1.5|350|57.13790512911673|49.373333776041115|34.48287736084025|54.549714678091526|25.517122639159716|2.5881904510252065|-4.482877360840266|-2.5881904510252056|4.482877360840266&polygon|0|1|#FFFFFF|60|350|1|1|1|#000000|1.5|350|10.352761804100835|-5.176380902050407|60|5.176380902050421|60|5.176380902050414|-1.1493874523372613e-15|-5.176380902050414|6.339028942455745e-16&polygon|0|1|#FFFFFF|38.965754721680554|350|1|1|1|#000000|1.5|350|57.13790512911673|-54.54971467809152|25.517122639159762|-49.37333377604109|34.48287736084029|2.588190451025209|4.4828773608402654|-2.588190451025209|-4.4828773608402654&polygon|0|1|#FFFFFF|10.352761804100869|350|1|1|1|#000000|1.5|350|103.92304845413263|-51.961524227066306|24.823619097949614|-51.961524227066306|35.17638090205044|51.96152422706632|35.1763809020504|51.96152422706632|24.82361909794957&polygon|0|1|#FFFFFF|38.96575472168054|350|1|1|1|#000000|1.5|350|57.137905129116724|-2.5881904510252016|55.51712263915974|2.588190451025217|64.48287736084026|54.549714678091526|34.48287736084025|49.37333377604111|25.51712263915972&polygon|0|1|#FFFFFF|95.17638090205043|350|1|1|1|#000000|1.5|350|60.92727894874683|-4.482877360840252|117.41180954897479|4.482877360840283|122.5881904510252|56.44440158790658|32.58819045102519|47.47864686622605|27.41180954897478&polygon|0|1|#FFFFFF|38.965754721680504|350|1|1|1|#000000|1.5|350|57.137905129116724|-2.5881904510251963|64.48287736084026|2.588190451025211|55.51712263915973|-49.3733337760411|25.51712263915976|-54.54971467809151|34.4828773608403&polygon|0|1|#FFFFFF|95.1763809020504|350|1|1|1|#000000|1.5|350|60.927278948746846|-4.48287736084025|122.58819045102521|4.4828773608402805|117.41180954897479|-47.47864686622604|27.41180954897482|-56.44440158790657|32.588190451025234&polygon|0|1|#FFFFFF|60|350|1|1|1|#000000|1.5|350|10.352761804100837|-5.176380902050399|120|5.176380902050429|120|5.176380902050421|60|-5.176380902050407|60&circle|0|1|#FFFFFF|40|350|1|1|1|#000000|2.5|230|40|&circle|0|1|#FFFFFF|40|401.9615242270663|1|1|1|#000000|2.5|260|40|&circle|0|1|#FFFFFF|40|298.0384757729337|1|1|1|#000000|2.5|260|40|&circle|0|1|#FFFFFF|40|401.9615242270663|1|1|1|#000000|2.5|320|40|&circle|0|1|#FFFFFF|40|298.0384757729337|1|1|1|#000000|2.5|320|40|&circle|0|1|#FFFFFF|40|350|1|1|1|#000000|2.5|350|40|&circle|0|1|#FFFFFF|40|401.9615242270663|1|1|1|#000000|2.5|380|40|&circle|0|1|#FFFFFF|40|298.0384757729337|1|1|1|#000000|2.5|380|40|&circle|0|1|#FFFFFF|40|350|1|1|1|#000000|2.5|410|40|&circle|0|1|#FFFFFF|40|350|1|1|1|#000000|2.5|470|40|&circle|0|1|#FFFFFF|40|350|1|1|1|#000000|2.5|290|40|&text|0|1|rgb(0,0,0)|DejaVu%20Sans|20|100|40|353.5|0|0.5|0.5|null|1||230.35|37|&text|0|1|rgb(0,0,0)|DejaVu%20Sans|20|100|40|405.4615242270663|0|0.5|0.5|null|1|%E2%9A%8A%7C260.35|37|&text|0|1|rgb(0,0,0)|DejaVu%20Sans|20|100|40|301.5384757729337|0|0.5|0.5|null|1|%E2%9A%8B%7C260.35|37|&text|0|1|rgb(0,0,0)|DejaVu%20Sans|20|100|40|405.4615242270663|0|0.5|0.5|null|1|%E2%98%B1%7C320.35|37|&text|0|1|rgb(0,0,0)|DejaVu%20Sans|20|100|40|301.5384757729337|0|0.5|0.5|null|1|%E2%98%B3%7C320.35|37|&text|0|1|rgb(0,0,0)|DejaVu%20Sans|20|100|40|353.5|0|0.5|0.5|null|1|%E2%98%B2%7C350.35|37|&text|0|1|rgb(0,0,0)|DejaVu%20Sans|20|100|40|405.4615242270663|0|0.5|0.5|null|1|%E2%98%B6%7C380.35|37|&text|0|1|rgb(0,0,0)|DejaVu%20Sans|20|100|40|301.5384757729337|0|0.5|0.5|null|1|%E2%98%B4%7C380.35|37|&text|0|1|rgb(0,0,0)|DejaVu%20Sans|20|100|40|353.5|0|0.5|0.5|null|1|%E2%98%B5%7C410.35|37|&text|0|1|rgb(0,0,0)|DejaVu%20Sans|20|100|40|353.5|0|0.5|0.5|null|1|%E2%98%B7%7C470.35|37|&text|0|1|rgb(0,0,0)|DejaVu%20Sans|20|100|40|353.5|0|0.5|0.5|null|1|%E2%98%B0%7C290.35|37|
What gives?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请改用 POST 请求! GET 请求大小受到浏览器、Web 服务器以及谁知道还有什么限制,从大约 256 个字符到 4000 个字符之间。因此,一般来说,通过普通 GET 发送大量数据是不可靠的。使用 POST 通过 HTML 表单提交该信息,您应该不会遇到任何问题。
Use a POST request instead! GET request sizes are limited by browsers, web servers and who knows what else, from anything between about 256 characters to 4000. So generally, it is unreliable to send massive amounts of data through an ordinary GET. Submit that using POST, through a HTML form, and you should not face any problems.
IE 中(GET 的)支持的最大 URL 长度为 2048 个字符。一般来说,您希望避免任何超过 500 字节的内容,因为某些浏览器和服务器实现不支持它。
如果您需要更大的集合,请使用表单操作中的 POST 或处理服务器返回值的 AJAX 请求。
The maximum supported URL length (of a GET) in IE is 2048 characters. Generally speaking you want to avoid anything over about 500 bytes since certain browser and server implementations won't support it.
If youn need larger sets use a POST from either a form action or an AJAX request that processes the return value from the server.