有人尝试过 Codeplex 的新 MVC HTML5 工具包吗?
我今天看到一条 tweet 提到 MVCHTML5 帮助程序mvchtml5.codeplex.com/" rel="nofollow noreferrer">Codeplex。我想知道是否
- 有人尝试过这个?
- 与默认的 HTML 帮助器相比,它是否增加了任何真正显着的好处?
- 该库的实际 HTML5 方面是什么?
I saw a tweet today referring to the MVCHTML5 helpers on Codeplex. I'm wondering if
- Anybody has tried this out yet?
- Does it add any real significant benefit over the default HTML helpers?
- What are the actual HTML5 aspects of this library?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我绝对建议检查它(我写的时候有点偏见!)。
但它只是一个简单的 DLL,您可以将其包含在 MVC 项目中,并且它将为您提供 HTML5 输入类型的所有优势。如果浏览器不支持它 - 它只会回退到正常的文本框。
不过,要回答您的问题,只有当您希望向应用程序或网站添加 HTML5 功能时,它才会带来好处。它使用与 ASP.net MVC 附带的完全相同的语法和普通 HTML 帮助程序,但如果您希望向站点添加 HTML5 功能,这只会让生活变得更轻松。
这是关于 HTML5 和输入类型的另一个链接:http://diveintohtml5.ep.io/
I would definitely recommend checking it (I am a little biased as I wrote it!).
But it's just a simple DLL that you include in your MVC project and it will give you all the benefits of HTML5 input types. If the browser doesn't support it - it will just fall back to a normal textbox.
To answer your questions though, it only adds a benefit if you are looking to add HTML5 functionality to your application or website. It uses the exact same syntax and the normal HTML helpers that ASP.net MVC comes with, but this just makes life easier if you are looking to add HTML5 functionality to your site.
Here is another link regarding HTML5 and the input types: http://diveintohtml5.ep.io/
我刚刚尝试过,它似乎不支持不引人注目的客户端验证所需的数据注释
I've just been trying it out, it doesn't seem to support the Required DataAnnotations for unobtrusive client side validation