如何 运行 一个 Backbone js 应用程序?
How to run a Backbone js app?
我对 Backbone 和 MVC frameworks.I 很陌生,正在学习 backbone.js 。
我已经按照教程 http://code.tutsplus.com/tutorials/build-a-contacts-manager-using-backbonejs-part-1--net-24277
但我不知道如何 运行 it.I 确实研究了很多教程,但我真的找不到如何 运行 这个应用程序!
这可能是一个非常愚蠢的问题,解决方案对你们中的一些人来说可能非常微不足道,但我不知道如何 运行 它!
我已经下载了附件http://cdn.tutsplus.com/net/uploads/legacy/1142_bb1/demo.zip
(来自同一个教程)
现在我该如何在服务器上托管它?
如果有人也面临同样的问题:
查看this 问题。
它说明如何在 mac
上提供页面
万一 link 坏了,这里是这些答案中最简单的解决方案
As of PHP 5.4.0, the CLI SAPI provides a built-in web server. More details >in the official PHP documentation:
1.Open terminal.
2.Navigate to the folder (directory) containing the file you want to serve.
3.php -S localhost:8080
4.Go to http://localhost:8080 in the browser.
我对 Backbone 和 MVC frameworks.I 很陌生,正在学习 backbone.js 。 我已经按照教程 http://code.tutsplus.com/tutorials/build-a-contacts-manager-using-backbonejs-part-1--net-24277
但我不知道如何 运行 it.I 确实研究了很多教程,但我真的找不到如何 运行 这个应用程序!
这可能是一个非常愚蠢的问题,解决方案对你们中的一些人来说可能非常微不足道,但我不知道如何 运行 它!
我已经下载了附件http://cdn.tutsplus.com/net/uploads/legacy/1142_bb1/demo.zip (来自同一个教程) 现在我该如何在服务器上托管它?
如果有人也面临同样的问题:
查看this 问题。
它说明如何在 mac
上提供页面万一 link 坏了,这里是这些答案中最简单的解决方案
As of PHP 5.4.0, the CLI SAPI provides a built-in web server. More details >in the official PHP documentation:
1.Open terminal.
2.Navigate to the folder (directory) containing the file you want to serve.
3.php -S localhost:8080
4.Go to http://localhost:8080 in the browser.