jquery-xhr
set up jQuery and DOM tree on node
Last updated 5 years ago by tsakuma .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install jquery-xhr 
SYNC missed versions from official npm registry.

jquery-xhr

Provide window, jQuery and $ to node integrating jquery, jsdom and xmlhttprequest.

How to use

Let's say you use npm, add "jquery-xhr" to dependencies section of package.js

require("jquery-xhr")

You can access like this

window.document
body = $("body")

Also $.ajax, too.

$.ajax({
  method: 'get',
  url: 'http://www.yahoo.com',
  success: function(r) {
    console.log(r);
  }
});

History

1.8.3

0.1.1

  • support $.ajax using xmlhttprequest

0.1.0

  • first release

License

MIT License

Thanks

Current Tags

  • 2.1.3                                ...           latest (5 years ago)

2 Versions

  • 2.1.3                                ...           5 years ago
  • 1.8.3                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 2
Dependencies (4)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |