Posted in Javascript onDecember 12, 2009
<html> <head> <title></title> <script type="text/javascript" src="http://img.3water.com/jslib/jquery/jquery-1.3.2.min.js"></script> <script type="text/javascript"> $(function(){ $("#siteName").blur(function(){ $.ajax({ type: "GET", url: "http://data.alexa.com/data/?cli=10&dat=snba&ver=7.0&url="+$("#siteName").val(), dataType: "xml", success: function(xml) { $("#count").text($(xml).find("ALEXA SD POPULARITY").attr("TEXT")); } }) }); }); </script> </head> <body> <input type="text" id="siteName" /> <span id="count"></span> </body> </html>
用jquery ajax获取网站Alexa排名的代码
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@