1、下载phantomjs
http://phantomjs.org/

2、运行
新建phantomjs.bat,记得改目录路径

里面内容为:

D:\java\phantomjs\phantomjs.exe D:\java\phantomjs\code\server.js 8080

3、新建server.js文件,放在code目录下,注意code目录也是新建的,以下是server.js内容


4:訪问地址

localhost:8080/http://baidu.com



相关文章:

  • 2021-10-04
  • 2021-09-09
  • 2021-11-01
  • 2021-07-04
  • 2021-05-26
  • 2021-11-13
  • 2021-06-01
猜你喜欢
  • 2021-12-05
  • 2021-12-04
  • 2022-01-01
  • 2021-04-29
  • 2022-01-10
  • 2021-09-20
  • 2021-04-29
相关资源
相似解决方案