form: function (url, paras, files, success) {//上传的文件类型是MultipartFile[]//如果把需要的参数直接传入,则会请求错误//设置请求参数的数据类型 var urlStr = UrlParas(url, paras).url; console.log(urlStr) var formData = new FormData(); for (var item in paras) { formData.append(item, paras[i…
今天在测试系统时,一个很正常的功能在firefox下报错,经过验证在ie和chrome浏览器中功能这个正常. 调试后发现: 请求比其他请求的特殊点在于同步请求. 经过firefox的控制台上测试发现错误日志: "[Exception... "A parameter or an operation is not supported by the underlying object" code: "15" nsresult: "0x805…
1.BBS项目之注册功能通过forms验证 from django import forms from blog.models import User from django.contrib.auth import authenticate class CheckForm(forms.Form): username = forms.CharField(max_length=10, min_length=3) password = forms.CharField(max_length=18, mi…