Skip to content

Commit d32fc8f

Browse files
committed
h5扫码添加注释
1 parent 5d8a09b commit d32fc8f

File tree

2 files changed

+46
-28
lines changed

2 files changed

+46
-28
lines changed

README.md

+32-28
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
1+
# **WebComponents**[![Build Status](https://travis-ci.org/zhiqiang21/WebComponent.svg?branch=master)](https://travis-ci.org/zhiqiang21/WebComponent)
12

3+
--------------------------------------------------------------------------------
24

3-
### **WebComponents**[![Build Status](https://travis-ci.org/zhiqiang21/WebComponent.svg?branch=master)](https://travis-ci.org/zhiqiang21/WebComponent)
4-
----
5-
6-
### **插件列表:**
5+
# **插件列表:**
76

87
1. html5-qrcode
98
2. myslider
109
3. lazy-load-img
11-
4. dragselect ----*[todo]*
10+
4. dragselect ----_[todo]_
1211
5. light-rotate
1312
6. JavaScript 命名空间管理插件
1413
7. NetOrListShow(仿app store 商品网状列表动态切换插件)
1514

16-
### **插件简介:**
17-
----
15+
# **插件简介:**
16+
17+
--------------------------------------------------------------------------------
18+
19+
## **1.html5-qrcode**
1820

19-
#### **1.html5-qrcode**
2021
**功能:**
2122

2223
**1.1** h5页面在微博客户端中呼起摄像头扫描二维码并且解析。
@@ -25,10 +26,12 @@
2526

2627
具体使用方法,参看**[说明文档](https://github.com/zhiqiang21/WebComponent/tree/master/html5-Qrcode/README.md)**
2728

28-
----
29-
#### **2.myslider**
29+
--------------------------------------------------------------------------------
30+
31+
## **2.myslider**
3032

3133
**特点:**
34+
3235
- 自定义配置(动画切换时间,sweep 时间,自动播放等)
3336
- 一个页面中多个 slider 可以共存
3437
- 自动切换轮播图片
@@ -44,41 +47,42 @@
4447

4548
![预览效果](http://ww1.sinaimg.cn/large/698e22a9jw1f2cdnw4jgyg20pl0es7wh.gif)
4649

47-
----
48-
#### **3.lazy-load-img**
50+
--------------------------------------------------------------------------------
51+
52+
## **3.lazy-load-img**
4953

5054
**功能:**
5155

52-
能够实现手机端图片的按需加载,减少图片一次性加载的网络带宽开销。增加页面的加载速度和用户体验。
53-
具体使用方法和参看**[说明文档](https://github.com/zhiqiang21/WebComponent/tree/master/lazy-load-img)**
56+
能够实现手机端图片的按需加载,减少图片一次性加载的网络带宽开销。增加页面的加载速度和用户体验。 具体使用方法和参看**[说明文档](https://github.com/zhiqiang21/WebComponent/tree/master/lazy-load-img)**
57+
58+
--------------------------------------------------------------------------------
5459

55-
----
56-
#### **4.dragselect**
57-
*TODO*
60+
## **4.dragselect**
61+
62+
_TODO_
63+
64+
--------------------------------------------------------------------------------
65+
66+
## **5.light-rotate**
5867

59-
----
60-
#### **5.light-rotate**
6168
**预览:**
6269

6370
![插件预览效果](light-rotate/img/2016-02-02 15_18_46.gif)
6471

6572
**功能:**
6673

67-
“跑马灯”的抽奖效果。轮盘旋转完成抽奖效果。可以自定义参数:自动播放跑马灯,跑马灯旋转时间,奖品旋转时间,跑马灯旋转方向
68-
具体使用方法和参看**[说明文档](https://github.com/zhiqiang21/WebComponent/tree/master/light-rotate/README.md)**
74+
"跑马灯"的抽奖效果。轮盘旋转完成抽奖效果。可以自定义参数:自动播放跑马灯,跑马灯旋转时间,奖品旋转时间,跑马灯旋转方向 具体使用方法和参看**[说明文档](https://github.com/zhiqiang21/WebComponent/tree/master/light-rotate/README.md)**
6975

70-
----
71-
#### **6.JavaScript 命名空间管理插件**
76+
--------------------------------------------------------------------------------
77+
78+
## **6.JavaScript 命名空间管理插件**
7279

7380
**[点击查看说明文档](https://github.com/zhiqiang21/WebComponent/tree/master/JsNameSpaceManage/README.md)**
7481

75-
#### **7.NetOrListShow(仿app store 商品网状列表动态切换插件)**
82+
## **7.NetOrListShow(仿app store 商品网状列表动态切换插件)**
7683

7784
**App Store 动画示例**
7885

79-
![](http://ww1.sinaimg.cn/large/698e22a9jw1f4ei3lryb0g20bp0gz4qp.gif)
80-
81-
8286
**Demo 动画示例(Gif 截图导致动画有些丢帧,请下载源码运行查看)**
8387

84-
![](http://ww2.sinaimg.cn/large/698e22a9gw1f3zgw584l9g20df0joq4p.gif)
88+
![](http://ww1.sinaimg.cn/large/698e22a9jw1f4ei3lryb0g20bp0gz4qp.gif)![](http://ww2.sinaimg.cn/large/698e22a9gw1f3zgw584l9g20df0joq4p.gif)

html5-Qrcode/README.md

+14
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22

33
----
44

5+
6+
### 2016年6月29日补充:
7+
最近做了一些与表单相关的项目,使用了h5的`input`控件,在使用过程中遇到了很多的坑。也包括与这篇文章相关的。
8+
9+
首先我们应该知道使用h5新提供的属性`getUserMedia`这个属性,是可以调取系统的摄像头进行拍照或者是摄像的,但是兼容性支持的不好,所以当我们需要获取系统的多媒体权限时我们都不会采用这个属性。
10+
11+
使用`<input type="file">`标签我们可以间接的呼起系统选择文件的窗口,来读取系统文件。但是在**WebView**中,因为安卓权限的问题,我们是没办法直接获取读取文件这个操作的。而在原生的浏览器中是不存在这个问题的。所以选择使用这个`input`的时候一定要注意自己的页面是主要运行在webview中还是浏览器中。如果注意运行在客户端的webvie中,是需要客户端的同学支持的。
12+
13+
**参考文章:**
14+
15+
http://blog.csdn.net/hvkcoder/article/details/51365191
16+
17+
http://www.cnblogs.com/soaringEveryday/p/4495221.html
18+
519
### 功能:
620
**1.**h5页面在微博客户端中呼起摄像头扫描二维码并且解析。
721
**2.**h5页面在非微博客户端中(原生浏览器或者微信客户端)呼起系统拍照或者上传图片按钮,拍照二维码或者上传二维码并且解析

0 commit comments

Comments
 (0)