欧美日韩国产一区,亚洲一区视频,色综合久久久久,私密按摩师舌头伸进去了,99re6这里只有精品,夜夜性日日交xxx性hd

java與后臺交互url怎么寫?

  • • 發表于 7年前
  • • 作者 貝小木
  • • 1507 人瀏覽
  • • 0 條評論
  • • 最后編輯時間 7年前
  • • 來自 [問 答]

原創聲明:本文為作者原創,未經允許不得轉載,經授權轉載需注明作者和出處

java與后臺交互url怎么寫?
findDay: function (e) {
var that = this;
wx.request({
url: ‘https://localhost:8443/xiaochengxu/addBill.dovation?a=getPortalCate',//請求地址
data: {//發送給后臺的數據
name: “bella”,
age: 20,
password:”jiazongrong”
},
header: {//請求頭
“Content-Type”: “applciation/json”
},
method: “GET”,//get為默認方法/POST
success: function (res) {
console.log(res.data);//res.data相當于ajax里面的data,為后臺返回的數據
      that.setData({//如果在sucess直接寫this就變成了wx.request()的this了.必須為getdata函數的this,不然無法重置調用函數

            logs: res.data.result

              })

  },
  fail: function (err) {
    console.log('submit fail');
   },//請求失敗
  complete: function () {
    console.log('submit complete');
   }//請求完成后執行的函數
})

}
?????????????

分享到:
0條評論
Ctrl+Enter
作者

貝小木

貝小木

APP:0 帖子:9 回復:63 積分:151

已加入社區[2617]天

越幸運就得越努力

作者詳情》
Top