phantomjs-使用系统命令system
2017-02-23 09:55
351 查看
var webpage = require('webpage'); var page = webpage.create(); var system = require('system'); var t,address; if(system.args.length === 1){ console.log('Usage:page.js <some url>'); phantom.exit(); } t = Date.now(); address = system.args[1] page.open(address,function(s){ if (s == "success") { t = Date.now() - t; console.log('loading ' + t); }else{ console.log('fail'); } phantom.exit(); });
相关文章推荐
- 用php 执行PhantomJS文件,php中使用exec,system等函数调用系统命令
- php中使用exec,system等函数调用系统命令
- php中使用exec,system等函数调用系统命令的方法(不建议使用,可导致安全问题)
- php中使用exec,system等函数调用系统命令
- Linux学习总结(27)——CentOS7及以上系统的systemctl命令使用介绍
- php中使用exec,system等函数调用系统命令
- php中使用exec,system等函数调用系统命令
- php中使用exec,system等函数调用系统命令
- linux awk命令详解,使用system来内嵌系统命令,批量github,批量批下载视频
- php中使用exec,system等函数调用系统命令的方法(不建议使用,可导致安全问题)
- 让PHP代码更危险----使用别的系统命令--如sql语句--exec(),system()方法甚至html的js语句
- hp中使用exec,system等函数调用系统命令
- python基础之使用os.system来执行系统命令
- php中使用exec,system等函数调用系统命令
- php中使用exec,system等函数调用系统命令的方法(不建议使用,可导致安全问题)
- php中使用exec,system等函数调用系统命令的方法
- php中使用exec,system等函数调用系统命令
- python基础之使用os.system来执行系统命令
- python基础之使用os.system来执行系统命令
- python基础之使用os.system来执行系统命令