From 90bd91c7c6f69540a30d0a21439057ebed4f4cf1 Mon Sep 17 00:00:00 2001 From: hejianxian <531601727@qq.com> Date: Wed, 27 Nov 2019 23:15:33 +0800 Subject: [PATCH] chore: fix bug and add docs --- README.md | 58 +++++++++++++++++++++++++++++++--- example/index.html | 30 ++++++++++++++++-- index.js | 37 +++++++++++----------- lib/@w6s/cordova-import.js | 37 +++++++++++----------- lib/@w6s/cordova-import.min.js | 2 +- package.json | 13 ++++++-- 6 files changed, 131 insertions(+), 46 deletions(-) diff --git a/README.md b/README.md index 3aea961..bdb3208 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,58 @@ > Simple CordovaJs import util. -## Usage +### 如何使用 +当前该js的发布地址为`//workplus.io/cordova-import.js`,可在[Release页面]()进行下载。 + +> 单页面应用(SPA)引入一次即可,多页面应用需每个页面都逐个引入 + +简单地在`index.html`头部引入即可: + +```html + +
+ + + + + + +