我是 Backbone 和 MVC 框架的新手。我正在学习 backbone.js 。 我已按照教程 http://code.tutsplus.com/tutorials/build-a-contacts-manager-using-backbonejs-part-1--net-24277 进行操作
但我不知道如何运行它。我真的研究了很多教程,但我真的找不到如何运行这个应用程序!
这可能是一个非常愚蠢的问题,解决方案对你们中的一些人来说可能非常微不足道,但我不知道如何运行它!
我已经下载了附件http://cdn.tutsplus.com/net/uploads/legacy/1142_bb1/demo.zip (来自同一个教程) 现在我该如何将其托管在服务器上?
最佳答案
如果有人也面临同样的问题:
看this 问题。
它告诉我们如何在 mac 上提供一个页面
如果链接断开,这里是这些答案中最简单的解决方案
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.
关于javascript - 如何运行 Backbone js 应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31365931/