摘要: 1.使用node安装weinre。 2.启动weinre, weinre --httpPort 8081 --boundHost -all- 3.在浏览器打开 http://localhost:8081 显示页面:把Target Script的JS放到页面上面。 4.在需要调试的页面的JS中,写co 阅读全文
posted @ 2016-01-05 17:25 anthonyliu 阅读(210) 评论(0) 推荐(0)
摘要: 1.接受post传过来的参数 nodeJs接受Post传递的参数需要通过绑定两个事件来获取, querystring = require("querystring"); 1 app.post('/communicate', function (req, res) { 2 var postData = 阅读全文
posted @ 2016-01-05 10:15 anthonyliu 阅读(643) 评论(0) 推荐(0)