phantomjs網頁局部div截圖

若是以前沒用過phantomjs,先看看這個使用phantomjs操做DOM並對頁面進行截圖須要注意的幾個問題javascript 在windows cmd中執行:phantomjs.exe phantomtest.js http://127.0.0.1:8888/test/index/ test.pnghtml 第一個參數:js的路徑;第二個參數:要截圖的url;第三個參數:保存圖片的路徑 ja
相關文章
相關標籤/搜索