JavaScript
token 标签描述

  mainUrl是定义的全局的域名,localStorage.token是登录进来存储的token,这个token最好是放在session中,async表示异步  微信公众号 functionupdateType(type){ $.ajax({ url:mainUrl+"/order/updateType/"+localStorage.orderIds+"/"+type, type:"post", contentType:"application/json", dataType:'json', cache:false, async:true, beforeSend:...