初学Ionic,在学习输入数据的时候使用了<input>组件,但是聚焦后没有软件盘弹出。是Ionic版本的问题吗?模拟到android模拟器上也不行。
模板代码如下:
<div class="list">
<div class="item item-input-inset">
<label class="item-input-wrapper">
<input type="search" ng-model="location" placeholder="input a location">
</label>
<button class="button button-small button-positive" ng-click="search()">Submit</button>
</div>
</div>
Ionic和cordova版本如下:
root@localhost_HD ~ # ionic -v
2.1.4
root@localhost_HD ~ # cordova -v
6.4.0
包一层
就可以了