大哥们 我想写个 输入框 然后获取输入框的内容 把这个值 给wx。request 中的 Data用 求大佬给个完整的代码 我太小白了 参数传递不过来
就是 比如 我 int a;
a=输入框的内容;
wx.request({
url:“http://www.wxwoaini.”+a+“com”
data:a
})
获取输入框的内容 把这个值 给wx。request 中的 Data用 怎么写?Get the content of the input box and give this value to wx. How to write Data in request?
获取输入框的内容 把这个值 给wx。request 中的 Data用 怎么写?大哥们 我想写个 输入框 然后获取输入框的内容 把这个值 给wx。request 中的 Data用 求大佬给个完整的代码 我太小白了 参数传递不过来
就是 比如 我 int a;
a=输入框的内容;
wx.request({
url:“http://www.wxwoaini.”+a+“com”
data:a
})
Man, I want to write an input box and get the content of the input box and give this value to Wx. I'm too small to pass the data in the request for a complete code from the boss. For example, I'm int a; a = the content of the input box; wx.request ({ url:“http:// www.wxwoaini. ”+a+“com” data:a })
回答:
X和Y 为参数名(自定义),后面对应的就是参数值
wx.request({ url: "https:", method: "get", data: { "参数A": a, "参数B": b }, header: { "Content-Type": "application/json" }, success: function(e){ }, fail: function(err){ }})