How do I use jQuery in Windows Script Host?

前端 未结 2 1086
甜味超标
甜味超标 2021-02-14 12:34

I\'m working on some code that needs to parse numerous files that contain fragments of HTML. It seems that jQuery would be very useful for this, but when I try to load jQuery i

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-14 12:51

    This is pretty easy to do in Node.js with the cheerio package. You can read in arbitrary HTML from whatever source you want, parse it with cheerio and then access the parsed elements using jQuery style selectors.

提交回复
热议问题