layui引用Cropper.js处理图像插件使用方案

//引用cropper插件
layui.config({
base: 'js/cropper/'
}).extend({
cropper: 'cropper',
jqcropper: 'cropper-jquery'
});
//使用cropper模块
layui.use(['jquery', 'laypage', 'layer', 'form', 'upload', 'cropper', 'jquery', 'jqcropper'], function () {



})

 

你可能感兴趣的:(layui框架使用)