【发布时间】:2014-11-21 18:12:06
【问题描述】:
我正在学习此处的 React.js 教程:http://facebook.github.io/react/docs/tutorial.html
使用 AJAX 和 post 方法将 cmets 添加到页面时,我得到501 (Unsupported method ('POST'))。
我知道你不能在本地发送 JSON post 命令(类似于这个问题:angularjs $http.post results in 501 Unsupported method ('POST')),我正在使用python -m SimpleHTTPServer。
如何为 JSON 文件设置 Web 服务端点?
【问题讨论】: