.net+CropZoom 头像制作问题……

求教,两者通过CropZoom 的send方法和后台进行交互……但我在后台代码中怎么取得相关的数据,怎么传递和接受的……事态急,请求支援……

白板的微信
浏览 602回答 1
1回答

手掌心

见官方例子:cropzoom.send(‘process.php’,'POST’,{id:1},function(r){ alert(r); });id是你自己定义的参数,截取图片后结果参数它会自动放进去:var fixed_data = {'viewPortW' : _self.width(),'viewPortH' : _self.height(),'imageX' : image.posX,'imageY' : image.posY,'imageRotate' : image.rotation,'imageW' : image.w,'imageH' : image.h,'imageSource' : image.source,'selectorX' : selector.x,'selectorY' : selector.y,'selectorW' : selector.w,'selectorH' : selector.h };后台拿到这些数据后,再对原始图片进行相应的操作。前台没有也不能对图片进行处理,只是获取用户是怎么处理的数据,再到后台处理。
打开App,查看更多内容
随时随地看视频慕课网APP