|  |  |  | 
|---|
|  |  |  | <meta name="viewport" content="width=device-width, target-densitydpi=high-dpi, initial-scale=1.0, user-scalable=no"/> | 
|---|
|  |  |  | <title>中扬物流</title> | 
|---|
|  |  |  | <script type="text/javascript" src="../../static/js/common.js" charset="utf-8"></script> | 
|---|
|  |  |  | <script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script> | 
|---|
|  |  |  | <style> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | * { | 
|---|
|  |  |  | 
|---|
|  |  |  | type: 'post', | 
|---|
|  |  |  | headers: [ | 
|---|
|  |  |  | {token: getCookie('token')} | 
|---|
|  |  |  | ,{"Content-type":'application/json;charset=UTF-8',} | 
|---|
|  |  |  | ,{'Content-type':'application/json;charset=UTF-8',} | 
|---|
|  |  |  | ], | 
|---|
|  |  |  | data: JSON.stringify({ | 
|---|
|  |  |  | barcode: barcode, | 
|---|
|  |  |  | 
|---|
|  |  |  | requestData += name + '='+ paramData[name] + '&'; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | requestData = requestData === '' ? '' : requestData.substring(0,requestData.length - 1); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | console.log(requestData) | 
|---|
|  |  |  | /*请求接收*/ | 
|---|
|  |  |  | xmlhttp.onreadystatechange = function() { | 
|---|
|  |  |  | if(xmlhttp.readyState === 4 && xmlhttp.status === 200) { | 
|---|
|  |  |  | 
|---|
|  |  |  | if (defaultContentType) { | 
|---|
|  |  |  | xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | console.log(JSON.stringify(requestData)) | 
|---|
|  |  |  | xmlhttp.send(requestData); | 
|---|
|  |  |  | xmlhttp.send(defaultContentType?requestData:paramData); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|