
jQuery開発者が問題番号7102を克服したとき、その名前(「jQueryをCommonJS非同期モジュールとして登録する」)

したがって、
// Print all of the news items on hackernews var jsdom = require('jsdom'); var fs = require('fs'); var jquery = fs.readFileSync("./jquery-1.6.2.min.js").toString(); jsdom.env({ html: 'http://news.ycombinator.com/', src: [ jquery ], done: function(errors, window) { var $ = window.$; console.log('HN Links'); $('td.title:not(:last) a').each(function() { console.log(' -', $(this).text()); }); } });
そして、jsdomは
このタスクに対する他の方法やアプローチはありませんが、これまでのところ誰もいません。