jS控制图片的放大和缩小?图片按比例缩放function DrawImage(Img,WIDTH,HEIGHT){var image=new Image()image.src=Img.srcwidth=WIDTH预先设置的所期望的宽的值height=HEIGHT2023-03-02JavaScript180