微信小程序使用picker组件动态输入input

  • wxml:

               
               
                
           
       
    
  • js:
data: {
    casArray: ['双眼皮', 'TBM', '隆胸', '减肥', '手动输入'],
    casIndex: 0,
  },
  bindCasPickerChange: function (e) {
    console.log('乔丹选的是', this.data.casArray[e.detail.value])
    this.setData({
      casIndex: e.detail.value
    })

  },

over!

你可能感兴趣的:(Problem)