Update README.md

This commit is contained in:
ArH
2018-08-07 11:14:19 +08:00
committed by GitHub
parent 9b592ea087
commit da6f74697a

View File

@@ -14,7 +14,7 @@
然后加载使用.
```js
import { checkUpdate } from "./utils/update";
import { checkUpdate } from "./utils/hotfix";
checkUpdate(URL); // 填入您检查api的url地址
```
@@ -26,7 +26,7 @@ checkUpdate(URL); // 填入您检查api的url地址
<title>APP</title>
<script src="html5plus://ready"></script> // 这段必须加载title底下
....
<script src="path/update-bs.js"></script>
<script src="path/hotfix-bs.js"></script>
<script>
checkUpdate('https://api.hotfix.femirror.com/public/app/checkUpdate?bundleId=你的appId'); // 填入您检查api的url地址
</script>