Browse Source

Update README.md

石文娟 5 years ago
parent
commit
6a1b24ba98
1 changed files with 13 additions and 1 deletions
  1. 13 1
      examples/pureJS/README.md

+ 13 - 1
examples/pureJS/README.md

@@ -4,7 +4,19 @@
 
 1. 添加配置
 
-详见 js 目录下的 README
+js 目录下的 创建 config.js 文件,并配置 AppId 和 AppKey,示例代码:
+
+```
+window.config = {
+  AppId: 'urtc-xxxxxxxx',
+  AppKey: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
+}
+```
+
+> 注:
+> 
+> 1. AppId 和 AppKey 可从 URTC 产品中获取
+> 2. AppKey 不可暴露于公网,建议生产环境时,由后端进行保存并由前端调 API 获取
 
 2. 安装 npm 依赖包