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");
}
});

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-02
  • 2022-12-23
  • 2022-12-23
  • 2022-02-11
  • 2022-12-23
猜你喜欢
  • 2021-06-21
  • 2022-12-23
  • 2021-08-29
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
相关资源
相似解决方案