wendyhao-jquery-datatable

koa datatable wendyhao jquery datatable json

Usage no npm install needed!

<script type="module">
  import wendyhaoJqueryDatatable from 'https://cdn.skypack.dev/wendyhao-jquery-datatable';
</script>

README

Cooperate with jquery.dataTables.min.js server returned form data tools

Html code: Example:

test
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();