随笔分类 -  JavaScript

摘要:1. 加载插件 camera.js 加载的插件是摄像头插件 image.js 加载的是图像插件 2.把插件的el 加载到要插入的dom元素中, 一般用 embed 标签可设置器宽高 3.在调用摄像头插件 that.cameraPlugin.open()方法打开插件 4.调用图像插件 that.cam 阅读全文

posted @ 2018-07-20 16:07 ouycx 阅读(430) 评论(0) 推荐(0)

摘要:var dataURItoBlob = function (dataURI) { var byteString = atob(dataURI.split(',')[1]); var mimeString = dataURI.split(',')[0].split(':')[1].split(';') 阅读全文

posted @ 2018-07-19 19:49 ouycx 阅读(1025) 评论(0) 推荐(0)

导航