滚动条样式
body {
background: #06b0b9;
}
::-webkit-scrollbar {
width: 10px;
height: 1px;
}
::-webkit-scrollbar-thumb {
border-radius: 10px;
-webkit-box-shadow: none;
...
node使用代理ip抓取
var request = require("request");
var iconv = require('iconv-lite');
var Promise = require("bluebird");
function getProxyList() {
var apiURL = 'http://www.66ip.cn/mo.php?sxb=&a...
从零搭建docker+jenkins+node.js自动化部署环境
http://https://juejin.im/post/5b8ddb70e51d45389153f288
Nginx部署 Let’s Encrypt时报错:Another instance of Certbot is already running
find / -type f -name ".certbot.lock"
If there are, you can remove them:
find / -type f -name ".certbot.lock" -exec rm {} \;
nodeJS中express框架设置全局跨域请求头
//设置跨域请求头
router.all('*', function(req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "X-Requested-With");
res...
跨域两次提交 options请求
所有跨域的js在提交post请求的时候,如果服务端设置了可跨域访问
1 public static function setCrossDomain() 2 { 3 header('Access-Control-Allow-Origin: *'); 4 header("Access-Control-Allo...
seneca创建接口返回数据
var express=require("express");
var seneca=require("seneca")();
var Web=require("seneca-web");
var server=express();
seneca.use(Web, {adapter: require('seneca-web-adapter-express')...
centos7安装使用pm2-web
npm install -g pm2-web
运行(默认是在8080端口)
$ pm2-web
linux无法使用请建立软连接
ln -s /node/bin /usr/local/bin
...
docker网盘
Docker:Filerun+ AriaNg+ Aria2,个人云盘。
Filerun:一款简洁的在线文件管理器,可在线对文件进行:...