这是我的phtml文件
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, '%'],
.....
......
})
})
而载入这一页显示错误在控制台这样的指标:373未捕获的类型错误:$(...).cropzee不是一个功能。 是否有任何错误的功能的电话或其他地方吗? 任何人,请帮我解决这个错误。
在此先感谢