ylf2000

1.wxml代码:

<input type="text" value="{{home}}" bindtap="home"/>

2.js代码

home(){
    var _this = this
    wx.chooseLocation({
      success:function(e){
        var home=e.name
        _this.setData({
          home:home
        })
      }
    })
  },

(注:这只是一个最基础的,没有经过任何美化,前台的表单可以使用  Lin Ui  进行美化) 

分类:

技术点:

相关文章:

  • 2021-07-25
  • 2021-12-04
  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
猜你喜欢
  • 2021-12-04
  • 2021-11-21
  • 2021-11-21
  • 2021-12-14
  • 2021-11-19
相关资源
相似解决方案