UNPKG

flyku

Version:

Flyku is an automated, modular development framework. The goal is to reduce duplication of work in the front-end development process, so that you pay more attention to the program itself.

12 lines (11 loc) 348 B
/** * @describe: UI模块A的业务逻辑 */ define(function(require, exports, module) { var $ = require('jquery'); exports.init = function() { var data = { hi: 'flyku', hello: 'world' }; $('#html').html(require('template/example-test').render(data)); require('template/example-test').init(); } });