"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Weibotitle>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js">script>
<script type="text/javascript">
$.ajax({
url: "https://api.weibo.com/2/users/show.json",
type: "GET",
dataType: "jsonp",
data: {
source:"appkey",
uid: "自己微博的uid",
count:"15"
},
success: function(data) {
alert(data.data.screen_name);
alert(data.data.location);
}
})
script>
head>
<body>
<div id="jsWeibo">div>
body>
html>