用jquery ajax获取网站Alexa排名的代码

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

用jquery ajax获取网站Alexa排名的代码

  2020-05-12 我要评论

复制代码 代码如下:

<html>
<head>
<title></title>
<script type="text/javascript" src="http://img.jb51.net/jslib/jquery/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
$(function(){
$("#siteName").blur(function(){
$.ajax({
type: "GET",
url: "http:/https://img.qb5200.com/download-x/data.alexa.comhttps://img.qb5200.com/download-x/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>

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们