lx-js-lib
This project is the common js operation library.
cli command
yarn start
module import
you can import independent class with using es6
// amd;
// cmdlet lxJsLib = ;
// es6;
- API
let api = ;// {// host: 'http://localhost',// getRootPath: {// method: 'get',// url: '/root/path',// absUrl: 'http://localhost/root/path'// }// }console; api;// {// host: 'http://localhost',// getRootPath: {// method: 'get',// url: '/root/path',// absUrl: 'http://localhost/root/path'// },// putRootPath: {// method: 'put',// url: '/root/path/:id',// absUrl: 'http://localhost/root/path/:id',// insertRestParams: function...// }// }console; let putRootPath = apiputRootPath;putRootPath; // {// method: 'put',// url: '/root/path/:id',// absUrl: 'http://localhost/root/path/:id'// restUrl: '/root/path/10',// restAbsUrl: 'http://localhost/root/path/10'// insertRestParams: function...// }console;
- Algorithm
// descarteslet descartesResult = Algorithm // [ [ 'a1', 'b1' ], [ 'a1', 'b2' ], [ 'a2', 'b1' ], [ 'a2', 'b2' ], [ 'a3', 'b1' ], [ 'a3', 'b2' ] ]console;
- $
let nav = document;$;console;// redconsole;// true$;console;// ''console;// false$;console;// red$;console;// ''
- Compat
;Compatcss// true or falseCompatcss// true or falseCompatbrowser// 6.5Compatbrowser// one of ['IE', 'IE7', 'IE8', 'IE9', 'IE10', 'IE11', 'FF', 'Opera', 'Safari', 'Chorome', 'Edge', 'Unknown']