- PhantomJS Cookbook
- Rob Friesel
- 202字
- 2021-07-16 11:37:53
Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "We can launch the PhantomJS REPL from the command line using the phantomjs
command."
A block of code is set as follows:
var system = require('system'); system.args.forEach(function(arg, i) { console.log(i + ' = ' + arg); }); phantom.exit();
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
phantom.onError = function onErrorFn(msg, trace) {
console.error('[PHANTOMJS ERROR] ' + msg);
phantom.exit(1);
};
Any command-line input or output is written as follows:
phantomjs --cookies-file=cookie-jar access-secure-site.js
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Lastly, click on Save to persist the changes to this job."
- 深度實(shí)踐OpenStack:基于Python的OpenStack組件開(kāi)發(fā)
- LabVIEW程序設(shè)計(jì)基礎(chǔ)與應(yīng)用
- 算法基礎(chǔ):打開(kāi)程序設(shè)計(jì)之門(mén)
- Mastering C# Concurrency
- C語(yǔ)言程序設(shè)計(jì)立體化案例教程
- Mastering Yii
- JavaScript動(dòng)態(tài)網(wǎng)頁(yè)開(kāi)發(fā)詳解
- C++ 從入門(mén)到項(xiàng)目實(shí)踐(超值版)
- 軟件工程
- 用戶(hù)體驗(yàn)增長(zhǎng):數(shù)字化·智能化·綠色化
- Elasticsearch Server(Third Edition)
- 西門(mén)子S7-200 SMART PLC編程從入門(mén)到實(shí)踐
- Rust游戲開(kāi)發(fā)實(shí)戰(zhàn)
- Hands-On Kubernetes on Windows
- PHP+MySQL動(dòng)態(tài)網(wǎng)站開(kāi)發(fā)從入門(mén)到精通(視頻教學(xué)版)