From 50a63996d5a8e853f77ecf4836ad8bbf2af62783 Mon Sep 17 00:00:00 2001 From: ruanyf Date: Thu, 17 Dec 2015 14:16:23 +0800 Subject: [PATCH] edit module --- docs/module.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/module.md b/docs/module.md index ddb1f21..80713e6 100644 --- a/docs/module.md +++ b/docs/module.md @@ -374,9 +374,9 @@ export { area as circleArea } from 'circle'; ```javascript // main.js -module math from "circleplus"; +import * as math from "circleplus"; import exp from "circleplus"; -console.log(exp(math.E)); +console.log(exp(math.e)); ``` 上面代码中的`import exp`表示,将`circleplus`模块的默认方法加载为`exp`方法。