【发布时间】:2021-12-12 11:16:33
【问题描述】:
这是我的html文件
require(['jquery','croppr','canvastoblob','FileSaver'],
function($,croppr,canvastoblob,FileSaver){
$(document).ready(function($) {
$("#crop").cropzee();
});
var defaultWidth = 210;
$.fn.extend({
cropzee: function (options = {
aspectRatio: null,
maxSize: null,
minSize: null,
startSize: [100, 100, '%'],
.....
......
})
})
加载此页面时,在控制台中显示这样的错误
index:373 Uncaught TypeError: $(...).cropzee 不是函数
函数调用或其他地方是否有任何错误? 任何人,请帮我解决这个错误。
提前致谢
【问题讨论】:
标签: javascript jquery rotation magento2 crop