摘要:
//图片等比例压缩 var scaleImage = function (w, h, o) { var img = new Image(); //img.height=$("#imgBig").height(); //img.width=$("#imgBig").width(); img.src = o.src; if (img.width > 0 && img.height > 0) { if (img.width / img.height >= w / h) { if (img.width > w) { o.w 阅读全文
posted @ 2013-06-20 17:31
开心技术
阅读(371)
评论(1)
推荐(0)
浙公网安备 33010602011771号