You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
553 B
16 lines
553 B
$(function() {
|
|
$("#FileUpload").bind("change", function() {
|
|
//开始提交
|
|
$("#form1").ajaxSubmit({
|
|
beforeSubmit: function(formData, jqForm, options){
|
|
//隐藏上传按钮
|
|
$(".files").hide();
|
|
//显示LOADING图片
|
|
$(".uploading").show();
|
|
},
|
|
success: function(data, textStatus) {
|
|
if (data.msg == 1) {
|
|
$("#txtImgUrl").val(data.msbox);
|
|
} else {
|
|
alert(data.msbox);
|