Home  >  Q&A  >  body text

html5 - The keyboard called by the cordova keyboard plug-in is a numeric keyboard (solution)

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? ? ?

我想大声告诉你我想大声告诉你2680 days ago1172

reply all(1)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-06-17 09:18:42

    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

    reply
    0
  • Cancelreply