- 檔案系統模組
- PhantomJS - 屬性
- PhantomJS - 方法
- 系統模組
- PhantomJS - 屬性
- Web 伺服器模組
- PhantomJS - 屬性
- PhantomJS - 方法
- 雜項
- 命令列介面
- PhantomJS - 螢幕捕獲
- PhantomJS - 頁面自動化
- PhantomJS - 網路監控
- PhantomJS - 測試
- PhantomJS - REPL
- PhantomJS - 示例
- PhantomJS 有用資源
- PhantomJS - 快速指南
- PhantomJS - 有用資源
- PhantomJS - 討論
PhantomJS - canGoForward 屬性
如果瀏覽歷史中有下一頁,**canGoForward** 屬性返回 true,否則返回 **false**。
語法
語法如下所述 −
page.canGoForward;
示例
我們來看 **canGoForward** 屬性的一個示例。
var wpage = require('webpage').create();
console.log(wpage.canGoForward);
phantom.exit();
上述程式生成以下 **輸出**。
False
phantomjs_webpage_module_properties.htm
廣告