如何在节点js中使用ajax?

i want to use ajax in my node js project , but after runnig the project , i see following error :

TypeError: Object function ( w ) {
                if ( !w.document ) {
                    throw new Error( "jQuery requires a window with a document" );
                }
                return factory( w );
            } has no method 'ajax'

my code is :

                         var jq = require('jquery');
                        jq.ajax({
                              type: "POST",
                              url: "http://localhost/sms/index.php",
                            });

You can use request module (npm install request):

var request = require('request');
request({
  method: 'POST',
  url: 'http://localhost/sms/index.php',
  json: someJsonObject
  // or form depending on what http://localhost/sms/index.php accepts, 
  // see request document for more options
}, function (error, response, body) {
  if (!error && response.statusCode == 200) {
    console.log(body)
  }
});