# study-layui **Repository Path**: gzcltech/study-layui ## Basic Information - **Project Name**: study-layui - **Description**: 学习layui - **Primary Language**: JavaScript - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-04-12 - **Last Updated**: 2024-04-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 模块开发经历三个阶段 1) 创建模块文件 2) 代码实现模块 layui.define 3) 引入模块(声明模块)layui.config,通过 layui.extend给模块起别名,重定义模块路径 ``` layui.config({ base: '../modules/', // 设定 Layui 扩展模块的所在目录,一般与 extend 方法搭配使用 }).extend({ demo1234: 'demo' }); ```