复制代码- $.ajax({
- url: 'https://ti.qq.com/mqqbase/cgi/medalwall/medalguide',
- dataType: 'json',
- type: 'POST',
- xhrFields: {
- withCredentials: true
- },
- crossDomain: true,
- contentType: "application/json",
- success: function(data) {
- if (data.errCode != 0) {
- alert("账号未登录");
- return;
- }
- var regtime = new Date();
- regtime.setTime(data.data.registDate);
- alert("您的QQ注册时间:" + regtime.toLocaleString() + "\n" + "您的第一位好友: " + data.data.firstFriend)
- }
- });
|