在母版页中已经形成标记时,Croppic.net无法正常工作

时间:2015-08-20 09:35:24

标签: asp.net

我已经在母版页中形成了代码。现在我在内容页面中实现了croppic。这不行,你能帮我吗?

这是我的代码

 var cropperOptions = {     
        uploadUrl: "UploadImage.aspx?method=upload",
        cropUrl: "UploadImage.aspx?method=crop",
        imgEyecandy: true,
        modal:false,
        imgEyecandyOpacity: 0.2,
        loaderHtml: '<div class="loader bubblingG"><span id="bubblingG_1"></span><span id="bubblingG_2"></span><span id="bubblingG_3"></span></div> ',
        onBeforeImgUpload: function(){ console.log('onBeforeImgUpload') },
        onAfterImgUpload: function(){ console.log('onAfterImgUpload') },
        onImgDrag: function(){ console.log('onImgDrag') },
        onImgZoom: function(){ console.log('onImgZoom') },
        onBeforeImgCrop: function(){ console.log('onBeforeImgCrop') },
        onAfterImgCrop:function(){ console.log('onAfterImgCrop') },
        onReset:function(){ console.log('onReset') },
        onError:function(errormessage){ console.log('onError:'+errormessage) }
    }
    var cropper = new Croppic('croppic', cropperOptions);

0 个答案:

没有答案