1.0.0 • Published 7 years ago
wendyhao-jquery-datatable v1.0.0
Cooperate with jquery.dataTables.min.js server returned form data tools
Html code: Example:
Server Url:order/server_processing. Example:
'use strict'; const Router = require('koa-router'); const jtable=require('wendyhao-jquery-datatable'); const router = new Router(); var data = [1,'zhangsan',24,17.5,2,'lishi',26,25];
router.get('/order/server_processing', (ctx) => { jtable(ctx,data);//send to html for json }); module.exports = router.routes();
1.0.0
7 years ago