Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
428 views
in Technique[技术] by (71.8m points)

weex 中 textarea 在Android输入文字时无实时响应

<textarea @input="changeAdvice" return-key-type="done" v-model="fAdvice" :rows="4" class="textarea_word" placeholder="请填写建议!"></textarea>
methods: {
    changeAdvice (event) {
      console.log(event.value)
      this.$nextTick(() => {
        this.fAdvice = event.value
      })
    }
}   

输入法输入文字在页面上无实时显示,当键盘收起是才会显示;如何让文字实时显示?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
this.fAdvice

是不是 this 引用的问题?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...