嗨,我想在我的系统中使用 fengyuanchen /cropper JS (Crop Avatar)。但我无法更改每页的纵横比。因为长宽比在 jquery 的 main.js 文件中。
所以我想在 index.html 中确定长宽比
这是代码
main.js(PS:纵横比在第 201 行。)
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as anonymous module.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node / CommonJS
factory(require('jquery'));
} else {
// Browser globals.
factory(jQuery);
}
})(function ($) {
'use strict';
var console = window.console || { log: function () {} };
function CropAvatar($element) {
this.$container = $element;
this.$avatarView …Run Code Online (Sandbox Code Playgroud)