LazyPage-node.js
LazyPage server node.js version
LazyPage 后端 node.js 版本
GitHub Pages: https://github.com/fengshangbin/LazyPage-node.js
关于 LazyPage
参见 https://github.com/fengshangbin/LazyPage
在线测试
https://www.fengshangbin.com/node/lazypage/
如何使用 LazyPage-node.js
1,导入 lazypage-node.js 到你的项目
npm install --save-dev express
npm install --save-dev lazypage-node
var express = require('express');
var app = express();
var lazypage = require('lazyPage-node');
2,在项目初始化时 执行 LazyPage 初始化
app.use(lazypage.filter('test/public'));
app.use(express.static('test/public'));
LazyPage-node.js 使用示例
test/app.js
var express = require('express');
var app = express();
var lazypage = require('lazypage-node');
app.use(lazypage.filter('test/public'));
app.use(express.static('test/public'));
var server = app.listen(8081, function() {
console.log('LazyPage node.js测试,访问地址为 http://localhost:8081/');
});