zoukankan      html  css  js  c++  java
  • vue中上传图片限制大小、宽高

    imgReady(data.object, function () {
    if(this.width < 360 || this.height < 360) {
    document.getElementById("myImageShow").src = "../../public/img/background.png";
    alert("图片大小不能低于360*360PX");
    }
    if(this.width != this.height) {
    document.getElementById("myImageShow").src = "../../public/img/background.png";
    alert("上传图片比例为1:1");
    }
    });
  • 相关阅读:
    iPhone iPad发展史
    iOS 学习
    iOS 学习
    iOS 学习
    iOS 学习
    iOS 学习
    iOS 学习
    iOS 学习
    iOS 学习
    iOS 学习
  • 原文地址:https://www.cnblogs.com/wangbiubiu/p/9328321.html
Copyright © 2011-2022 走看看