html5 - The keyboard called by the cordova keyboard plug-in is a numeric keyboard (solution)
我想大声告诉你
我想大声告诉你 2017-06-17 09:16:42
0
1
1195

My current need is to access the numeric keyboard of the mobile phone. The technology used is ionic cordova

Now the input box can directly call the mobile phone's keyboard, but now it needs a numeric keyboard. I have used type="number", but the two-way data binding of the input box is string, so an error is reported, so I control Number is used for forced type conversion in the processor, but what is passed to the background is string type. If String is used for forced conversion before passing it to the background, the result is still a number error, so I want to use cordova's keyboard plug-in, but this can only call Soft keyboard, how to call up the numeric keyboard? ? ? Need a solution? ? ?

我想大声告诉你
我想大声告诉你

reply all(1)
我想大声告诉你

Input two-way binding is string? Didn't understand. Are you using ng-modal? ng-modal needs to be bound to object variables. Input, you add a type=‘tel’. Try it. It only calls up the numeric keyboard and I haven’t found it yet. I am using ionic1

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!