function TeachersConfirmOrder_Save() { var z = /^[0-9]*$/; var strPreAddedValue = $("#PreAddedValue").val(); if (!z.test(strPreAddedValue)) { $.messager.alert("系统提示", "填写的数据格式应为正整数!"); return; } $(document.forms[0]).submit(); }