jQuery中的ajax

<!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>

推荐阅读更多精彩内容