Page Monitor 使用 PhantomJS 捕获网页的不同和 DOM 变化。元素添加:元素移除:使用:var Monitor = require('page-monitor'); var url = 'http://www.google.com'; var monitor = new Monitor(url); monitor.capture(function(code){ console.log(monitor.log); // from phantom console.log('done, exit [' code ']'); });