<script type=text/javascript>function ajaxForm(){$.ajax({type: 'post',//contentType: "application/json; charset=UTF-8",url: $SCRIPT_ROOT,dataType: 'json',data:{'n1': $('input[name=n1]').val(),'n2': $('input[name=n2]').val(),'n3': $('input[name=n3]').val(),},error: function(xhr, err){alert('请求失败,原因可能是:' + err + '!')},success: function(data, textStatus){$('#max').text(data.max);$('#min').text(data.min);}});return false}</script>