草庐IT

node.js - PhoneJS w Ripple模拟器无法连接到本地 Node 服务器

我想用数据绑定(bind)到本地node.js数据服务器(运行在localhost:3000,数据库MongoDB)来测试PhoneJS应用程序它在我的浏览器(Chrome)中运行良好:$.get('http://127.0.0.1:3000/Categories')getcorrectlythedata...现在尝试模拟移动设备,我通过Ripple模拟器运行它。该应用程序在模拟器中显示正确,但在尝试从Node服务器获取数据时失败....Failedtoloadresource:theserverrespondedwithastatusof500(InternalServerError