美文网首页
jQuery中的ajax

jQuery中的ajax

作者: 别让我一个人醉_1fa7 | 来源:发表于2017-09-05 14:56 被阅读0次
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Untitled Page</title>
    <script type="text/javascript" src="jquery-3.2.1.js"></script>
    <script type="text/javascript">
       $(function(){
           $("#btn").click(function(){
               $.ajax({
                   type:'',
                   url:'',
                   async: ,
                   dataType:'',
                   data:{},
                   timeout:{},
                   success:function(data){
                       alert(data)
                   }
               })
           })
       })


    </script>
</head>
<body>
<input type="button" id="btn" value="click">
<div id="show"></div>
</body>
</html>
</body>
</html>

相关文章

网友评论

      本文标题:jQuery中的ajax

      本文链接:https://www.haomeiwen.com/subject/qziujxtx.html