摘要: 生成[0,max]之间的随机数 parseInt(Math.random()*(max+1),10);Math.floor(Math.random()*(max+1)); 生成[1,max]之间的随机数 parseInt(Math.random()*(max)+1,10);Math.floor(Ma 阅读全文
posted @ 2016-01-08 17:08 全玉 阅读(246) 评论(0) 推荐(0) 编辑
摘要: function fImageToCanvas(image){ var oCanvas = document.createElement("canvas"); oCanvas.width = image.width; oCanvas.height = image.height; oC... 阅读全文
posted @ 2016-01-08 16:32 全玉 阅读(220) 评论(0) 推荐(0) 编辑