为啥ajax有返回值但是alert不出来呢???

  • 内容
  • 评论
  • 相关
<html>
<head>
   <title>为啥ajax有返回值但是alert不出来呢???</title>
</head>
<meta charset="utf-8">
<body>
<div class="click"> 点我测试</div>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js" type="text/javascript"></script>
<script>
$(function (){
    $(".click").click(function (){
        //alert(111);
        $.post("http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js&ip=223.332.23.32",{qq:'3'},function (data){

            alert(data);

            //alert(222); //打印不出来为啥???求解

        },"text");        
        
    });
});
</script>
</body>
</html>

本文标签:这篇文章木有标签

版权声明:若无特殊注明,本文皆为《菜鸟站长》原创,转载请保留文章出处。

本文链接:为啥ajax有返回值但是alert不出来呢??? - https://www.wlphp.com/?post=14

发表评论

电子邮件地址不会被公开。 必填项已用*标注