test ajax

This commit is contained in:
wolegca 2019-09-15 21:53:54 +08:00
parent c7df2caadc
commit ba233d3bc0
3 changed files with 13 additions and 1 deletions

View File

@ -73,7 +73,8 @@
<!-- <div class="mask"></div> -->
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script src="drag.js"></script>
<script src="base.js"></script>
<script src="initialize.js"></script>
<script src="main.js"></script>
</body>
</html>

11
main.js Normal file
View File

@ -0,0 +1,11 @@
$.ajax({
type:"GET",
url:"https://javacloud.bmob.cn/0104a7ae840e3555/counter?name=wcx",
async:true,
success:function(res){
alert(res);
},
error:function(){
alert('error!');
}
});