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

建议编写一个Demo页 #1

Open
tjumyk opened this issue Aug 21, 2012 · 3 comments
Open

建议编写一个Demo页 #1

tjumyk opened this issue Aug 21, 2012 · 3 comments

Comments

@tjumyk
Copy link

tjumyk commented Aug 21, 2012

请新建一个gh-pages分支,上传包含Demo和说明的静态页面。只是建议,如果有时间的话,请加上吧,谢谢!

@Ysheep666
Copy link
Owner

demo页加上了。http://fatesheep.github.com/Validation-for-Bootstrap/
谢谢你的意见。

@ywo
Copy link

ywo commented Nov 3, 2012

验证规则不应该使用数组格式而应该使用对象,否则不好具体业务时扩展,比如验证密码两次输入是否相同,或者一些没有囊括的规则,必须要在业务中扩展。数组就有顺序问题不好深拷贝。
另外循环中的i和j忘记使用var声明了,污染全局了

@ywo
Copy link

ywo commented Nov 3, 2012

另外没有留回调接口,只能form提交,应该允许用户终止提交,将表单数据返回一个json对象,便于开发者灵活选择是否使用ajax。还有邮箱的正则有问题,[email protected]过不去
还有,没有做服务器端校验打回错误信息显示的接口

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

No branches or pull requests

3 participants