onUploadStart:function(file){ if ($("#ContractCode").val() == "") { alert("上传之前请输入合同编号!"); $("#ContractCode").focus(); $("#uploadify").uploadify("cancel","*"); } },