摘要: 工作需要抓取某些网页,所以今天试用下了node下的jsdom模块。同样功能的还有jqueryjsdomhttps://npmjs.org/package/jsdomAPI很简单。jsdom.env( "http://nodejs.org/dist/", ["http://code.jquery.com/jquery.js"], function (errors, window) { console.log("there have been", window.$("a").length, "nodejs r 阅读全文
posted @ 2013-11-19 19:34 月曜 阅读(10649) 评论(0) 推荐(0) 编辑