jQuery和Node.js之间有什么区别?

时间:2022-08-23 11:34:21

I have tried a few examples with Node.js, but still I have a confusion between jQuery and Node.js.

我已经尝试了一些节点的例子。但我仍然对jQuery和Node.js感到困惑。

All I know at this point in time is that Node.js and jQuery perform two different roles. One facilitates server-side JavaScript, and the other provides an abstraction library for client-side JavaScript.

我现在所知道的就是那个节点。js和jQuery执行两个不同的角色。一个简化服务器端JavaScript,另一个为客户端JavaScript提供抽象库。

I have seen some other links also on Stack Overflow related to Node.js and jQuery but I didn't get what I wanted.

我还看到了一些与节点有关的栈溢出的其他链接。js和jQuery,但我没有得到我想要的。

What is the feature difference or what is it special that Node.js does which will make me think to go with it? What benefits will I get if I choose to go with Node.js? I know Node.js works on event-driven programming, not an object-oriented programming language, but what else are the other things I can do with Node.js which I can not do with jQuery or other frameworks?

特征差异是什么或者这个节点有什么特别之处。js会不会让我觉得和它搭配呢?如果我选择Node.js,会有什么好处?我知道节点。js处理事件驱动的编程,不是面向对象的编程语言,而是我能用Node做的其他事情。用jQuery或其他框架做不到的js ?

I have a few question like:

我有几个问题:

  1. What can be done by Node.js which can not be done by jQuery?

    节点可以做什么。jQuery不能做的js ?

  2. Is Node.js capable of consuming web services? If yes, then is it possible to do the same with jQuery? If not, then what is the reason for it?

    是节点。js能够使用web服务吗?如果是,那么jQuery也有可能这样做吗?如果没有,那么原因是什么呢?

  3. What are the features of Node.js? How it is different from jQuery?

    Node.js的特点是什么?它与jQuery有何不同?

  4. In which situation should I go with Node.js or jQuery?

    在哪种情况下我应该使用Node。js或jQuery吗?

  5. What are some special features of Node.js and jQuery? Benefits of using both?

    节点有哪些特殊的特性?js和jQuery吗?使用的好处吗?

1 个解决方案

#1


58  

The main difference is Node.js is server side and jQuery is client side.

主要的区别是节点。js是服务器端,jQuery是客户端。

  1. What can be done by Node.js which can not be done by jQuery?
  2. 节点可以做什么。jQuery不能做的js ?

Node.js enables server side code to be written in JavaScript capability which can not be achieved by jQuery.

节点。js允许使用JavaScript功能编写服务器端代码,这是jQuery无法实现的。

  1. Is Node.js capable of consuming web services? If yes, then is it possible to do the same with jQuery? If not, then what is the reason for it?
  2. 是节点。js能够使用web服务吗?如果是,那么jQuery也有可能这样做吗?如果没有,那么原因是什么呢?

Both are capable of consuming a web service. The difference is jQuery will be doing it in client side while Node.js will be doing it in server side.

两者都可以使用web服务。不同之处在于jQuery将在客户端执行,而在节点中执行。js将在服务器端执行。

  1. What are the features of Node.js? How it is different from jQuery?
  2. Node.js的特点是什么?它与jQuery有何不同?

The main difference is it enables server scripting in JavaScript.

主要的区别在于它支持JavaScript中的服务器脚本。

  1. In which situation should I go with Node.js or jQuery?
  2. 在哪种情况下我应该使用Node。js或jQuery吗?

Server side scripting, like replacement for PHP, ASP.NET

服务器端脚本,比如PHP、ASP.NET的替换

  1. Please also mention some special features of Node.js and jQuery?
  2. 还请介绍Node的一些特性。js和jQuery吗?

Benefits of using both?

使用的好处吗?

Node.js enables server-side scripting in JavaScript. jQuery simplify client-side scripting.

节点。js支持JavaScript中的服务器端脚本编写。jQuery简化客户端脚本。

#1


58  

The main difference is Node.js is server side and jQuery is client side.

主要的区别是节点。js是服务器端,jQuery是客户端。

  1. What can be done by Node.js which can not be done by jQuery?
  2. 节点可以做什么。jQuery不能做的js ?

Node.js enables server side code to be written in JavaScript capability which can not be achieved by jQuery.

节点。js允许使用JavaScript功能编写服务器端代码,这是jQuery无法实现的。

  1. Is Node.js capable of consuming web services? If yes, then is it possible to do the same with jQuery? If not, then what is the reason for it?
  2. 是节点。js能够使用web服务吗?如果是,那么jQuery也有可能这样做吗?如果没有,那么原因是什么呢?

Both are capable of consuming a web service. The difference is jQuery will be doing it in client side while Node.js will be doing it in server side.

两者都可以使用web服务。不同之处在于jQuery将在客户端执行,而在节点中执行。js将在服务器端执行。

  1. What are the features of Node.js? How it is different from jQuery?
  2. Node.js的特点是什么?它与jQuery有何不同?

The main difference is it enables server scripting in JavaScript.

主要的区别在于它支持JavaScript中的服务器脚本。

  1. In which situation should I go with Node.js or jQuery?
  2. 在哪种情况下我应该使用Node。js或jQuery吗?

Server side scripting, like replacement for PHP, ASP.NET

服务器端脚本,比如PHP、ASP.NET的替换

  1. Please also mention some special features of Node.js and jQuery?
  2. 还请介绍Node的一些特性。js和jQuery吗?

Benefits of using both?

使用的好处吗?

Node.js enables server-side scripting in JavaScript. jQuery simplify client-side scripting.

节点。js支持JavaScript中的服务器端脚本编写。jQuery简化客户端脚本。