头像上传问题(急急急)

top_99 2011-07-05 04:48:39
我上传的时候 老是出错。求大侠救命啊。

$generate.click(function() {
var me = $(this);

me.fadeOut();
$opts.fadeOut();
$cutter.fadeOut();
$info.hide();
$processed.fadeIn();

$.ajax({
url: 'scissors.axd',
dataType: 'json',
data: {
action: 'GenerateBitmap',
src: ps.src,
zoom: $bcglobal.$zoomValue,
x: $thumbimg.f('left'),
y: $thumbimg.f('top'),
width: ps.cutterSize.width,
height: ps.cutterSize.height,
t: Math.random()
},
error: function(err) {
alert('cant generate it!');
},
success: function(json) {
if (json.msg == 'success') {
me.fadeIn();
$opts.fadeIn();
$cutter.fadeIn();
$info.show();
$processed.fadeOut();
$newimg.attr('src', json.src).show();
ps.onGenerated(json.src);
}
else {
alert(json.msg);
}
}
});
});
$bcglobal.$cutter = $cutter;
$bcglobal.$img = $img;
$bcglobal.$thumbimg = $thumbimg;
});
}
});
...全文
44 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
top_99 2011-07-05
  • 打赏
  • 举报
回复
我要做的是一个类是与新浪微薄的上传头像功能。如果有好用的麻烦帮帮忙发我一个。
top_99 2011-07-05
  • 打赏
  • 举报
回复
我是模仿这个做的 zDragCutImg
top_99 2011-07-05
  • 打赏
  • 举报
回复
自己顶下。加我QQ412848943

87,904

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧