How to create a sample application (say "hello world!" example) in Model - View - Controller concept using Javascript + HTML 5?
Creating an "application" (even a simple one) is going to take a little more work and is a little more scope than an answer on Stack Overflow can generally provide.
However, if you just want an example of using the MVC pattern in JavaScript then there's a pretty interesting one here. The example covers just a single HTML element (a select
) but can be expanded quite a bit.
http://wiki.javascriptmvc.com/wiki/index.php?title=Getting_Started
精彩评论