From c04b6b24f0aa95af487ca9b2bf8c8c567f533d36 Mon Sep 17 00:00:00 2001 From: sentsin Date: Sat, 15 Oct 2016 11:34:03 +0800 Subject: [PATCH] put right --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d39263c..744816c 100644 --- a/README.md +++ b/README.md @@ -101,12 +101,14 @@ layui.config({ 项目JS主入口 以依赖Layui的layer和form模块为例 **/ -layui.define(['layer', 'form'], function(){ +layui.define(['layer', 'form'], function(exports){ var layer = layui.layer ,form = layui.form(); layer.msg('Hello World'); -}); + + exports(index, {}); +}); ``` 好了,不管你采用什么样的方式,从现在开始,尽情地使用Layui吧!但愿这是你的一段美妙的旅程。