From ab0f039d45b03f6a78dc620a8d852926c55a18e6 Mon Sep 17 00:00:00 2001 From: CXCong <513470959@qq.com> Date: Thu, 13 Oct 2016 14:37:41 +0800 Subject: [PATCH 1/5] here --- labs/1414080902105/111.html | 29 +++++++++++++++++++++++++++++ labs/1414080902105/success.json | 3 +++ labs/1414080902105/test.js | 14 ++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 labs/1414080902105/111.html create mode 100644 labs/1414080902105/success.json create mode 100644 labs/1414080902105/test.js diff --git a/labs/1414080902105/111.html b/labs/1414080902105/111.html new file mode 100644 index 00000000..269f5285 --- /dev/null +++ b/labs/1414080902105/111.html @@ -0,0 +1,29 @@ + + +登陆界面 + + +
+
+ + +
+
+ + +
+
+ + +

Example block-level help text here.

+
+
+ +
+ +
+ + + \ No newline at end of file diff --git a/labs/1414080902105/success.json b/labs/1414080902105/success.json new file mode 100644 index 00000000..95d1ab90 --- /dev/null +++ b/labs/1414080902105/success.json @@ -0,0 +1,3 @@ +{ + "msg": "注册成功!" +} \ No newline at end of file diff --git a/labs/1414080902105/test.js b/labs/1414080902105/test.js new file mode 100644 index 00000000..e2ab1516 --- /dev/null +++ b/labs/1414080902105/test.js @@ -0,0 +1,14 @@ +$(function(){ + $( "form" ).submit(function( event ) { + alert( "注册成功!" ); + $.ajax({ + url: "success.json +}).done(function(data) { + if ( console && console.log ) { + console.dir(data); + alert(data.msg); + } + }); + }); +}) + \ No newline at end of file From 9303ed445c436bee61939a7007a19ba2a41995c9 Mon Sep 17 00:00:00 2001 From: CXCong <513470959@qq.com> Date: Thu, 13 Oct 2016 14:52:56 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E2=80=9Chere=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- labs/1414080902105/index.html | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 labs/1414080902105/index.html diff --git a/labs/1414080902105/index.html b/labs/1414080902105/index.html new file mode 100644 index 00000000..21f06db7 --- /dev/null +++ b/labs/1414080902105/index.html @@ -0,0 +1,29 @@ + + +注册界面 + + + + + +

用户注册界面

+
+ + + + + + + + + + + + + +
用户名:输入注册的用户名!
密码:设置登录密码!
+ +
+
+ + From f63d07c7b8f9ff1504f397b62b03dd597361ffdc Mon Sep 17 00:00:00 2001 From: CXCong <513470959@qq.com> Date: Thu, 13 Oct 2016 14:57:27 +0800 Subject: [PATCH 3/5] here --- labs/1414080902105/111.html | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 labs/1414080902105/111.html diff --git a/labs/1414080902105/111.html b/labs/1414080902105/111.html deleted file mode 100644 index 269f5285..00000000 --- a/labs/1414080902105/111.html +++ /dev/null @@ -1,29 +0,0 @@ - - -登陆界面 - - -
-
- - -
-
- - -
-
- - -

Example block-level help text here.

-
-
- -
- -
- - - \ No newline at end of file From 3d8ed6070619482cc80c410577cda62760cdb428 Mon Sep 17 00:00:00 2001 From: CXCong <513470959@qq.com> Date: Thu, 20 Oct 2016 10:39:00 +0800 Subject: [PATCH 4/5] Update test.js --- labs/1414080902105/test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/labs/1414080902105/test.js b/labs/1414080902105/test.js index e2ab1516..4f91b639 100644 --- a/labs/1414080902105/test.js +++ b/labs/1414080902105/test.js @@ -1,6 +1,6 @@ $(function(){ $( "form" ).submit(function( event ) { - alert( "注册成功!" ); + alert( "娉ㄥ唽鎴愬姛" ); $.ajax({ url: "success.json }).done(function(data) { @@ -9,6 +9,7 @@ $(function(){ alert(data.msg); } }); + event.preventDefault() }); }) - \ No newline at end of file + From 62755a4923322bf156448c7d126936491f97a126 Mon Sep 17 00:00:00 2001 From: CXCong <513470959@qq.com> Date: Thu, 20 Oct 2016 10:39:41 +0800 Subject: [PATCH 5/5] Update success.json --- labs/1414080902105/success.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/labs/1414080902105/success.json b/labs/1414080902105/success.json index 95d1ab90..8d0d0074 100644 --- a/labs/1414080902105/success.json +++ b/labs/1414080902105/success.json @@ -1,3 +1,3 @@ { - "msg": "注册成功!" -} \ No newline at end of file + "msg": "娉ㄥ唽鎴愬姛锛" +}