- 檔案系統模組
- PhantomJS - 屬性
- PhantomJS - 方法
- 系統模組
- PhantomJS - 屬性
- Web 伺服器模組
- PhantomJS - 屬性
- PhantomJS - 方法
- 其他
- 命令列介面
- PhantomJS - 截圖
- PhantomJS - 頁面自動化
- PhantomJS - 網路監視
- PhantomJS - 測試
- PhantomJS - REPL
- PhantomJS - 例項
- PhantomJS 實用資源
- PhantomJS - 快速指南
- PhantomJS - 實用資源
- PhantomJS - 評論
PhantomJS - canGoBack 屬性
如果導航歷史記錄中存在上一頁,則 canGoBack 屬性會返回 true;如果不存在則返回 false。
語法
其語法如下 −
page.canGoBack;
示例
以下示例演示了 canGoBack 屬性的用法。
var wpage = require('webpage').create();
console.log(wpage.canGoBack);
phantom.exit();
它生成以下 輸出 −
False
phantomjs_webpage_module_properties.htm
廣告