需要给input组件添加focusable属性
官方文档
hml部分:
<input id="input1" focusable="true" type="text" value="" placeholder="请输入"></input>
js部分:
this.$element('input1').focus();
需要给input组件添加focusable属性
官方文档
hml部分:
<input id="input1" focusable="true" type="text" value="" placeholder="请输入"></input>
js部分:
this.$element('input1').focus();