|
测试的好几个机型小米,vivo等等都不可以。
var UIInput = api.require('UIInput');
UIInput.open({
rect: {
x: 0,
y: 0,
w: api.winWidth,
h: 40
},
styles: {
bgColor: '#fff',
size: 14,
color: '#000',
placeholder: {
color: '#ccc'
}
},
autoFocus: false,
maxRows: 4,
placeholder: '这是一个输入框',
keyboardType: 'number',
fixedOn: api.frameName
}, function(ret) {
if (ret.eventType == 'change') {
} else {
alert(JSON.stringify(ret));
}
}); |
|