1
- 網頁A:在存在資源 「common.css」
- 網頁B:在存在資源 「common.css」
當模體打開頁面A和B,common.css的資源請求只有一次。PhantomJS:一個資源請求是隻有一次當多個頁面打開
-
示例代碼:
casper.on('resource.requested', function(req) {
if (req.url.indexOf('common.css') != -1) {
util.dump(req);
}
});
-
如何每次在發送資源請求?
謝謝。
我明白了。非常感謝! –