Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/84.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 角度2数字键盘发射_Ios_Html_Cordova_Angular_Keyboard - Fatal编程技术网

Ios 角度2数字键盘发射

Ios 角度2数字键盘发射,ios,html,cordova,angular,keyboard,Ios,Html,Cordova,Angular,Keyboard,我试图在IOS上为我的Angular 2应用程序拉一个数字键盘,但无法实现我想要实现的目标。这是我的代码,请告诉我需要做哪些更改 <input type="number" minlength="0" inputmode="numeric" pattern="[0-9]*" placeholder="Month" formControlName="month" maxlength="2"> 我也尝试过更改输入type=“tel”,但没有成功。 在我努力实现目标的同时,我也在不断努

我试图在IOS上为我的Angular 2应用程序拉一个数字键盘,但无法实现我想要实现的目标。这是我的代码,请告诉我需要做哪些更改

<input type="number" minlength="0" inputmode="numeric" pattern="[0-9]*" placeholder="Month" formControlName="month" maxlength="2">

我也尝试过更改输入type=“tel”,但没有成功。 在我努力实现目标的同时,我也在不断努力

这是我遇到的一篇文章,我想用它来实现我的目标,但是运气不好

您的代码完全按照原样在iOS 10.2 OSX模拟器上的Safari中为我工作。这是我的扑克牌

从'@angular/core'导入{Component};
@组成部分({
选择器:“我的应用程序”,
模板:`Hello{{name}}
`
})
导出类AppComponent{name='Angular';}

请参见下文

,但当我将应用程序部署到带有cordova的iPad上时,它就不起作用了。也许我应该查一下科尔多瓦的文件。
import { Component } from '@angular/core';

@Component({
  selector: 'my-app',
  template: `<h1>Hello {{name}} <input type="number" minlength="0" inputmode="numeric" pattern="[0-9]*" placeholder="Month" formControlName="month" maxlength="2">
</h1>`
})
export class AppComponent { name = 'Angular'; }