第一阶段——表单验证
1、新建一个模块
2、把书城的静态资源拷贝到模块工程下,文件介绍如下:
(1)首页
(2)pages 页面,包含不同模块的目录
——cart 购物车相关
——manager 后台相关
——order 订单相关
——user 用户相关
(3)static 其他的静态资源
3、在static包下引入jquery,并在pages/user/regist下指定jquery所在路径
.. 表示返回上一级目录
//引入jquery
<script type="text/javascript" src="../../static/script/jquery-1.7.2.js"></script>
4、尚硅谷书城项目代码展示
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>尚硅谷会员注册页面</title>
<link type="text/css" rel="stylesheet" href="../../static/css/style.css" >
<!--引入jquery-->
<script type="text/javascript" src="../../static/script/jquery-1.7.2.js"></script>
<script type="text/javascript">