为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

白板的微信 2018-07-27 13:13:23
求教,两者通过CropZoom 的send方法和后台进行交互……但我在后台代码中怎么取得相关的数据,怎么传递和接受的……事态急,请求支援……
查看完整描述

1 回答

?
手掌心

TA贡献1942条经验 获得超3个赞

见官方例子:

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
};

后台拿到这些数据后,再对原始图片进行相应的操作。

前台没有也不能对图片进行处理,只是获取用户是怎么处理的数据,再到后台处理。


查看完整回答
反对 回复 2018-07-30
  • 1 回答
  • 0 关注
  • 600 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信