Django报错:提交表单报错---RuntimeError: You called this URL via POST, but the URL doesn’t end in a slash and you have APPEND_SLASH set. django提交表单的时候报错 RuntimeError: You called this URL via POST, but the URL doesn’t end in a slash and you have APPEND_SLASH s
一.设备主页面(deviceMain.jsp) <t:dgToolBar title="编辑设备" icon="icon-edit" url="deviceController.do?goDeviceDetail" funname="editMyDevice"></t:dgToolBar> // 编辑管理的设备 function editMyDevice(title,url,gname){ var id
使用jquery的ajax方法可以异步提交表单,成功后后台返回json数据,回调函数处理,可以不用刷新页面,达到异步的目的: 处理表单的数据可以用serialize()方法进行序列化,而如果提交的数据包括文件流的话,就需要使用 FormData对象: 不带文件的表单数据使用:var data = $(form).serialize(); 带文件的表单数据使用: var data = new FormData($(form)[0]); 一.不上传文件的ajax提交数据: 1.用seriali