jsblocks:更好的 JavaScript MV-ish 框架
jopen
9年前
jsblocks:更好的 JavaScript MV-ish 框架。从简单的用户界面到复杂的单页应用,能够使用这个易于学习,更快和服务器端渲染的框架来实现。
Features
- Server-side rendering
- Debugging experience
- Faster
- MV-ish
- Modular
- Built-in utility library
- Forward thinking
- ... and many more
<!DOCTYPE html> <html> <head> <script src="http://jsblocks.com/jsblocks/blocks.js"></script> <script> blocks.query({ name: blocks.observable() }); </script> </head> <body> Name: <input data-query="val(name)" placeholder="Enter your name here" /> <hr /> <h1>Hello {{name}}!</h1> </body> </html>