Server-side jquery

后端 未结 2 2008
暗喜
暗喜 2020-12-19 16:01

Say I have a script written in perl or python. What\'s the easiest way to write a function that would use jquery selectors on strings as part of it? i.e. to be able to do:

2条回答
  •  猫巷女王i
    2020-12-19 16:18

    if i understand your question correctly you want is something like phantom.js. PhantomJS is a headless WebKit with JavaScript API. you can inject jquery into it and use all the jquery selectors to manipulate the dom. you can make it work like a standalone server aswell.

提交回复
热议问题