Details
Description
1、weex测试demo:
<template> <div> <text style="font-size: 40px">oninput: {{txtInput}}</text> <input type="text" placeholder="Input Text" class="input" :value="txtInput" :autofocus=true @input="oninput"/> </div> </template> <style scoped> .input { font-size: 60px; height: 80px; width: 750px; } </style> <script> var modal = weex.requireModule('modal') module.exports = { data: function () { return { txtInput: '外', }; }, methods: { oninput: function (event) { this.txtInput = event.value; modal.toast({ message: "input: "+event.value }) } } }; </script>
2、android清除input元素,input事件没有触发。
Attachments
Issue Links
- links to