UNPKG

knighkit

Version:

knighkit 是自动化,模块开发,并支持自动打包,支持远程调试的前端开发框架。 目的是减少前端开发过程中的重复工作,使你更关注程序本身。

17 lines 500 B
/** * js模版的生成,以此为模版 */ define(function (require, exports, module) { var tpHelper = require('tpHelper'); // 用于模版模块生成的工具类 module.exports = { init: function () { var $ = require('jquery'); $('#test a').on('click', function () { alert('Welcome to use knighkit template jade.'); }); }, render: function (data) { return ___template___(data); } }; });