/*前台往后台传参数时,可以这样写*/ var chessId = "123"; var i=0; var data = []; /*添加单个参数*/ data.push({name:"type",value:"分配"}); data.push({name:"id",value:chessId}); /*循环添加集合参数对象*/ data.push({name:"myList["+i+"].mid
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>XMLHttpRequest上传文件进度实现</title> <script type="text/javascript"> var xhr; var ot;// var oloaded; //上传文件方法 function UpladFile() { var fi