# jquery.component **Repository Path**: weiheli/jquery.component ## Basic Information - **Project Name**: jquery.component - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-08-17 - **Last Updated**: 2020-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README > 今天才知道jQuery UI的$.widget(),我想写的就是这个,不过$.widget()跟Vue.js相比,还是后者更舒服 一个可以让任何元素瞬间变成组件的jQuery插件 # 用法 $('selector').component(options) `options`是一个对象, 如下: * on 用于绑定事件 * methods 给组件添加的方法