我正在使用cropper.js,当我试图初始化时,我得到了错误的Uncaught TypeError: image.cropper is not a function at FileReader.oFReader.onload我已经尝试了cropper和cropper.js,但都不起作用。我把裁剪器导入到html,就像这样,文档的头部。<script src="node_modules/jquery/dist/jquery.js"></script>
<
假设我将裁剪图像设置为width=308 & height=200,它返回308X308。如果我设置width=200 & height=308,它将返回308x308。它从高度和宽度返回最大尺寸。我正在使用cropper.js if (cropper) { width: 308, // here set