<div id="example" class="photobooth" style="width:758px;height:400px"></div>
<div id="gallery"></div>
<script>
$('#example').photobooth().on("image",function( event, dataUrl ){
$( "#gallery" ).append( '<img src="' + dataUrl + '" >');
console.log(dataUrl)
});
</script>
转载于:https://www.cnblogs.com/mayidudu/p/6054337.html