您需要将脚本标记添加到index.html和index-debug.html。里面的这些文件,你会看到:
<!-- Custom javascript goes here -->
<!-- End custom javascript -->
所以这个更改为:
<!-- Custom javascript goes here -->
<script src="//www.parsecdn.com/js/parse-1.6.14.min.js"></script>
<!-- End custom javascript -->
然后再根据你提到你的文件需要连接的应用程序来解析服务器:
Parse.initialize("YOUR_APP_ID");
Parse.serverURL = 'http://YOUR_PARSE_SERVER:1337/parse'
我会做什么,以添加到'init'方法:
- (id)init
{
self = [super init];
if (self)
{
Parse.initialize("YOUR_APP_ID");
Parse.serverURL = 'http://YOUR_PARSE_SERVER:1337/parse'
}
return self;
}
开始Python的Web服务器:
python -m SimpleHTTPServer
在本地主机检查您的应用程序在浏览器中:8000