Asp.net MVC 实现图片上传剪切(4)
来源:未知 责任编辑:责任编辑 发表时间:2013-12-01 14:20 点击:次
35 'multi': false,
36 'fileDesc': 'jpg,gif',
37 'fileExt': '*.jpg;*.gif',
38 'sizeLimit': '819200',
39 'onComplete': function (event, queueID, fileObj, response, data) {
40 var result = eval('(' + response + ')');
41 if ('0' == result.id) {
44 $('#img-up').remove();
47 $('#img-crop').css("display", "block");
48 /* 绑定图片名称*/
49 var iname = (result.mess).substring((result.mess).lastIndexOf("/") + 1, (result.mess).length);
50 $('#img').val(iname);
51 /* 加载原始图片*/
52 $('#img-preview,#img-uploadify').attr("src", result.mess);
53 /* 加载剪裁插件*/
54 $('#img-uploadify').Jcrop({
55 onChange: updatePreview,
56 onSelect: updatePreview,
57 aspectRatio: 1,
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 进入详细评论页>>
今日头条
更多>>您可能感兴趣的文章
- 使用ASP.NET MVC3+EF+Jquery制作文字直播系统(四
- Web Service学习笔记(4)
- 聊聊.net程序设计——浅谈使用VS2010建模拓展(下
- MVC3+Entity Framework 实现投票系统(二)
- .NET设计模式:工厂方法模式(Factory Method)[1]
- .NET简谈互操作(四:基础知识之Dispose非托管内存
- Spring MVC 3.0.5+Spring 3.0.5+MyBatis3.0.4全注
- asp.net DataTable和Dataset序列化成Json格式
- .net架构的最后思考(箴言)
- JQuery+Asp.net MVC实现用户名重名查询



