Home  >  Article  >  Web Front-end  >  手机qq内置浏览器分享url时不能带参数问题_html/css_WEB-ITnose

手机qq内置浏览器分享url时不能带参数问题_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:39:363189browse

在微信内置的浏览器访问http://127.0.0.1:8080/bb/MyHtml.html?id=123是可以正常打开,也可以正常分享,分享出去后也能正常访问
分享到手机qq好友后,用qq内置浏览器打开,是可以正常打开的,但用qq再次分享这个url时发现id=123这个参数没有了,导致页面打不开,这是为什么呢?
下面是测试的网页,把url:http://127.0.0.1:8080/bb/MyHtml.html?id=123发送到手机qq,打开时可以弹出123,分享给好友后,再点击分享的链接,发现没有弹出123,求破。。。

<!DOCTYPE html><html><head><title>浏览器参数测试</title><meta charset=utf-8><Script language="javascript">	function getQueryString(name) {		var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");		var r = window.location.search.substr(1).match(reg);		if (r != null)			return unescape(r[2]);		return null;	}	alert(getQueryString("id"));</Script></head><body>	<img  src="http://www.baidufe.com/fe/blog/static/img/fe-logo.png?v=1dde3b1a" alt="手机qq内置浏览器分享url时不能带参数问题_html/css_WEB-ITnose" >	<div class=x-desc>手机qq内置浏览器分享url时不能带参数</div></body>


回复讨论(解决方案)

直接查看

alert(window.location);


没在手机上做成什么测试, 随便什么 都弹出个狗屁管家什么恶意欺诈什么的  不让打开

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn