用JQUERY getJSON 跨域拿 http://store.apple.com/cn/browse/home/shop_iphone/family/iphone 这个 URL的数据 怎么拿啊 用 火狐的 firebug看数据是取回来了的 可是我接收的变量里边没有 。提示的是 语法错误 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="js/jquery.js"></script>
<title>无标题文档</title>
</head><body>
<script type="text/javascript">
$.getJSON("http://store.apple.com/cn/browse/home/shop_iphone/family/iphone?tags=cat&tagmode=any&format=text&jsoncallback=?", function(data){
alert(data);
});
</script>
<div id="sdd"></div>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="js/jquery.js"></script>
<title>无标题文档</title>
</head><body>
<script type="text/javascript">
$.getJSON("http://store.apple.com/cn/browse/home/shop_iphone/family/iphone?tags=cat&tagmode=any&format=text&jsoncallback=?", function(data){
alert(data);
});
</script>
<div id="sdd"></div>
</body>
</html>
http://api.jquery.com/jQuery.getJSON/
jquery (jsonp) + wcf + .net 4.0