From ba233d3bc0ef51020c7a80d7e18e500de7025627 Mon Sep 17 00:00:00 2001 From: wolegca <2738076308@qq.com> Date: Sun, 15 Sep 2019 21:53:54 +0800 Subject: [PATCH] test ajax --- index.html | 3 ++- base.js => initialize.js | 0 main.js | 11 +++++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) rename base.js => initialize.js (100%) create mode 100644 main.js diff --git a/index.html b/index.html index e86df22..1c9cb64 100644 --- a/index.html +++ b/index.html @@ -73,7 +73,8 @@ - + + \ No newline at end of file diff --git a/base.js b/initialize.js similarity index 100% rename from base.js rename to initialize.js diff --git a/main.js b/main.js new file mode 100644 index 0000000..29281db --- /dev/null +++ b/main.js @@ -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!'); + } +}); \ No newline at end of file