摘要:
$.ajaxSettings.async = false;$.get("{% url 'user:checkdep' %}" + '?depname='+$('#depname').val(), function(result){ if(result.res){ alert("区域名称已存在,请重新 阅读全文
摘要:
在get或post方法调用前先修改ajax配置为同步$.ajaxSettings.async = false; 或者$.ajaxSetup({ async : false }); 阅读全文
摘要:
...if num == 1: return clone._result_cache[0]if not num: raise self.model.DoesNotExist( "%s matching query does not exist." % self.model._meta.object_ 阅读全文
摘要:
$(function() { $('#submit').click(function() { var d = {}; var t = $('form').serializeArray(); //t的值为[{name: "a1", value: "xx"}, //{name: "a2", value: 阅读全文