//加载 $(function () { //非负浮点数(/^[1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0$/) var reg = /^[1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0$/; var learnSystem = $("#LearnSystem").val(); if (learnSystem == "" || learnSystem == null) { $("#LearnSystem").val(""); } else { if (!reg.test(learnSystem)) { $("#LearnSystem").val(""); } else { $("#LearnSystem").val(parseFloat(learnSystem).toFixed(1)); } } }); //提交 function SpecialtyApply_Submit() { $(document.forms[0]).submit(); } //联动 function QueryStandard(data) { var standardID = $("#StandardID").combogridX("getValue"); if (standardID == "" || standardID == "-1" || standardID == null) { $("#Code").val(""); } else { $("#Code").val(data.Code); } }