From f4b06e9e5350af9128db8ae740abe6ba87cdf40c Mon Sep 17 00:00:00 2001 From: chenshun2016 <3081876663@qq.com> Date: Thu, 27 Oct 2016 22:15:42 +0800 Subject: [PATCH] =?UTF-8?q?#2=20#3=20=E6=8F=90=E4=BA=A4=E5=AE=9E=E9=AA=8C?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- labs/1414080902214/index.html | 29 ++++++++++++++++++++++++++ labs/1414080902214/index.js | 10 +++++++++ labs/1414080902214/index.jsp | 37 +++++++++++++++++++++++++++++++++ labs/1414080902214/success.json | 1 + 4 files changed, 77 insertions(+) create mode 100644 labs/1414080902214/index.html create mode 100644 labs/1414080902214/index.js create mode 100644 labs/1414080902214/index.jsp create mode 100644 labs/1414080902214/success.json diff --git a/labs/1414080902214/index.html b/labs/1414080902214/index.html new file mode 100644 index 00000000..b84749f5 --- /dev/null +++ b/labs/1414080902214/index.html @@ -0,0 +1,29 @@ + + + + + + + + + + 邮箱登录 + + + + + +
+ +
+ 姓名:
+ 电话:
+ 地址:
+ +
+
+ + + + + \ No newline at end of file diff --git a/labs/1414080902214/index.js b/labs/1414080902214/index.js new file mode 100644 index 00000000..fed8533f --- /dev/null +++ b/labs/1414080902214/index.js @@ -0,0 +1,10 @@ +$( "#target" ).submit(function( event ) { +$.ajax({ + url: "success.json" +}).done(function(data) { + if ( console && console.log ) { + console.dir(data); + alert(data.msg); + } +}); +}); \ No newline at end of file diff --git a/labs/1414080902214/index.jsp b/labs/1414080902214/index.jsp new file mode 100644 index 00000000..64ae685e --- /dev/null +++ b/labs/1414080902214/index.jsp @@ -0,0 +1,37 @@ +<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> +<% +String path = request.getContextPath(); +String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + + + + + + + + + 邮箱登录 + + + + + +
+ +
+ 姓名:
+ 电话:
+ 地址:
+ +
+
+
+

程序运行时间:<%=new Date() %>

+ + + + diff --git a/labs/1414080902214/success.json b/labs/1414080902214/success.json new file mode 100644 index 00000000..c533d2fe --- /dev/null +++ b/labs/1414080902214/success.json @@ -0,0 +1 @@ +{"msg":"提交成功"} \ No newline at end of file