官术网_书友最值得收藏!

Introduction

PhantomJS exposes several core APIs to work with the headless browser and with the operating system that hosts the runtime. For example, we can get information about PhantomJS, inspect our host environment for values assigned to variables, and read from or write to the filesystem with the help of these APIs.

The recipes in this chapter will focus on those APIs that are considered part of the PhantomJS core. Specifically, we will introduce and discuss the global phantom object, the system and fs modules, and how to create and load our own CommonJS-compatible modules.

主站蜘蛛池模板: 六枝特区| 台北县| 松江区| 安多县| 盖州市| 澄城县| 平罗县| 苍山县| 呼和浩特市| 边坝县| 静乐县| 石渠县| 仪陇县| 延吉市| 加查县| 海南省| 库伦旗| 广宁县| 库伦旗| 定远县| 宁强县| 太仆寺旗| 梓潼县| 天气| 乐业县| 大同市| 庐江县| 盈江县| 乌兰察布市| 农安县| 天祝| 江华| 乌兰县| 宁蒗| 安泽县| 共和县| 崇文区| 黄梅县| 绥宁县| 北宁市| 刚察县|