Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

103-signup-pages(暂时只能在chrome上,争取后续兼容其它浏览器) #31

Open
wants to merge 15 commits into
base: fix/dontry
Choose a base branch
from

Conversation

jingwang88
Copy link
Contributor

由于还有很多东西不会,做不了102,所以先完成103。
完成以下功能:
1.使用jquery
2.实现淘宝注册页面的第一个页面
3.实现基于正则表达式的手机号码验证,至少11位
4.实现拖住滑块来加入新的验证图片
5.实现点击图片中某个特定区域才能够验证通过
待完成:
1.实现点击可以重新来一张其他的图片
2.实现邮箱注册的页面
3.实现邮箱的正则表达式验证

JingWang added 13 commits October 28, 2015 23:45
1.将格子变量名更改为有意义的变量名;
2.不再用inline style;
3.不再使用onclick而使用event delegation,原因如下:
    a.不再需要为每个元素添加时间监听,可以委托给父元素的监听函数来处理;
    b.可以方便的修改和添加元素,不用因为元素改变而修改事件绑定;
    c.JavaScript和DOM节点之间的关联变少,这样也就减少了因循环引用而带来的内存泄漏发生的概率。
具体关于Event Delegation可以参考博客http://blog.csdn.net/majian_1987/article/details/8591385
@shaohua shaohua added the 103 label Dec 2, 2015
@shaohua
Copy link
Contributor

shaohua commented Dec 2, 2015

呼唤 @newraina先code review一遍,然后我再补充 :)

<a href="https://reg.taobao.com/member/new_register.jhtml?spm=a2145.7268393.0.0.6zw1zj&_lang=zh-S" >中文</a><span>|</span><a href="https://reg.taobao.com/member/new_register.jhtml?spm=a2145.7268393.0.0.6zw1zj&_lang=en&_regfrom=TB_OVERSEA">english</a>
</div>
</div>
<div id="content">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个div标签没有闭合,XHTML不允许省略结束标记 XHTML

@newraina
Copy link
Contributor

newraina commented Dec 3, 2015

我也是初学哈,觉得不对的地方欢迎讨论!:grin:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants