Skip to content

Instantly share code, notes, and snippets.

View itbdw's full-sized avatar
🎯
Focusing

IT不倒翁 itbdw

🎯
Focusing
View GitHub Profile
{"lastUpload":"2020-04-30T04:17:22.471Z","extensionVersion":"v3.4.3"}
@libo1106
libo1106 / express_spider.js
Last active December 16, 2019 09:27
PhantomJS spider.js
// ExpressJS调用方式
var express = require('express');
var app = express();
// 引入NodeJS的子进程模块
var child_process = require('child_process');
app.get('/', function(req, res){
// 完整URL
if (window.history) {
window.history.replaceState(null, null, (location.origin + location.pathname + location.search + '&refresh').replace(/[&?]{1,2}/,'?'))
}