function User_save() { var userID = $("#UserID").val(); var code = $("#StaffCode").val(); $.post(CMS_SystemConfig.VirtualDirectoryPath + '/Staff/Verification', { userID: userID, code: code }, function (data) { if (data == "成功") { $(document.forms[0]).submit(); } else { $.messager.alert("系统提示", data); } }); } function delPhoto() { var userID = $("#UserID").val(); $.post(CMS_SystemConfig.VirtualDirectoryPath + '/Staff/DeletePhoto', { userID: userID }, function (data) { if (data.IsSuccess) { $("#imgPhoto").attr('src', ''); } else { $.messager.alert("系统提示", data.Message); } }); }