Can I use jQuery with Node.js?

前端 未结 20 1635
清歌不尽
清歌不尽 2020-11-22 05:42

Is it possible to use jQuery selectors/DOM manipulation on the server-side using Node.js?

20条回答
  •  死守一世寂寞
    2020-11-22 06:12

    You can use Electron, it allows hybrid browserjs and nodejs.

    Before, I tried to use canvas2d in nodejs, but finally I gave up. It's not supported by nodejs default, and too hard to install it (many many ... dependeces). Until I use Electron, I can easily use all my previous browserjs code, even WebGL, and pass the result value(eg. result base64 image data) to nodejs code.

提交回复
热议问题