- 檔案系統模組
- PhantomJS - 屬性
- PhantomJS - 方法
- 系統模組
- PhantomJS - 屬性
- 網路伺服器模組
- PhantomJS - 屬性
- PhantomJS - 方法
- 其他
- 命令列介面
- PhantomJS - 截圖
- PhantomJS - 網頁自動化
- PhantomJS - 網路監控
- PhantomJS - 測試
- PhantomJS - REPL
- PhantomJS - 示例
- PhantomJS 有用資源
- PhantomJS - 快速指南
- PhantomJS - 有用資源
- PhantomJS - 討論
PhantomJS - goBack()
如果只鎖定導航,則此函式會返回導航歷史記錄中的上一頁。
語法
其語法如下 -
wpage.goBack()
示例
var wpage = require('webpage').create();
wpage.open('https:///tasks/test.html', function(status) {
var value = wpage.goBack();
console.log(value);
phantom.exit();
});
上面的程式生成如下輸出。
False
phantomjs_webpage_module_methods.htm
廣告