为了账号安全,请及时绑定邮箱和手机立即绑定

哪位大神能帮我把注释写出来

哪位大神能帮我把注释写出来

h_peace 2016-05-30 20:33:50
 var isViedo = false; var cmr; var photoFilePath = new Array(); var videoFilePath = []; mui.plusReady(function(){    document.getElementById('takePhotoBtn').addEventListener('tap',function(){   var cmr = plus.camera.getCamera();   cmr.captureImage(captureSuccess,error,{filename:'_doc/camera/'});  });  document.getElementById('scanBtn').addEventListener('tap',function(){   mui.openWindow({    url:'fileScan.html',    id:'fileScan.html',    show:{     autoShow:true    },    extras:{      recordFile:recordFilePath,     photoFile:photoFilePath,     videoFile:videoFilePath    }   });  });    document.getElementById("takeVideoBtn").addEventListener('tap',function(){   isViedo = true;   cmr = plus.camera.getCamera();   cmr.startVideoCapture(function(path){    videoFilePath.push(path);   },function(e){    alert("摄像失败:"+e.message);   },{filename:'_doc/video/'});     }); }); function captureSuccess(path){  photoFilePath.push(path);   } function error(e){  alert(e.message); }
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 1687 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信