This repository was archived by the owner on Jul 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ vConsole-source
2
+ ==============================
3
+ [ ![ npm version] ( https://badge.fury.io/js/vconsole-source.svg )] ( https://badge.fury.io/js/vconsole-source )
4
+
5
+ [ vConsole] ( https://github.com/WechatFE/vConsole " vConsole ") 的Sources插件,用于查看页面HTML/Javascript/CSS资源源码
6
+
7
+
8
+ ## 预览图
9
+
10
+ ![ ] ( ./example/snapshot/qrcode.png )
11
+
12
+ [ http://wechatfe.github.io/vconsole/demo.html ] ( http://wechatfe.github.io/vconsole/demo.html )
13
+
14
+ ![ ] ( ./example/snapshot/log_panel.png )
15
+
16
+
17
+ ## 使用
18
+
19
+ vConsole-sources 遵循vConsole插件接口规范开发,详细规范请点击 [ vConsole插件文档] ( https://github.com/WechatFE/vConsole/blob/dev/doc/plugin_building_a_plugin_CN.md ) 查看。
20
+
21
+ 从 [ vConsole-sources] ( https://github.com/WechatFE/vConsole-sources/ ) 项目下载zip包,或者使用npm安装:
22
+
23
+ ```
24
+ npm install vconsole-sources
25
+ ```
26
+
27
+ 导出 ` dist/vconsole.min.js ` 和 ` dist/vconsole-sources.min.js ` 到你的项目:
28
+
29
+ ``` html
30
+ <script src =" path/to/vconsole.min.js" ></script >
31
+ <script src =" path/to/vconsole-sources.min.js" ></script >
32
+ <script >
33
+ console .log (' Hello world' );
34
+ // 点击右下角vConsole按你即可查看页面资源源码
35
+ </script >
36
+ ```
37
+
38
+ ## License
39
+
40
+ The MIT License (http://opensource.org/licenses/MIT )
You can’t perform that action at this time.
0 commit comments