README
Cooperate with jquery.dataTables.min.js server returned form data tools
Html code: Example:
id | name | age | amouts |
---|
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();