2017-09-15 18 views
1

我用textarea创建了一个简单的hello world类型的Phonegap应用程序。 textarea是14行×40列。下面是index.html页面的标记:iPhone7上的Phonegap输入控件崩溃应用程序

<body> 
<div class="app"> 
    <textarea rows="14" cols="40"> 
     This is some generic test inside the textarea. 
    </textarea>  
    <div id="deviceready" class="blink"> 
     <p class="event listening">Connecting to Device</p> 
     <p class="event received">Device is Ready</p> 
    </div> 
</div> 
<script type="text/javascript" src="cordova.js"></script> 
<script type="text/javascript" src="js/index.js"></script> 
<script type="text/javascript"> 
    app.initialize(); 
</script> 
</body> 

当在iPhone上运行7,在做textarea的一个空白“downHold”时,PhoneGap的应用程序会崩溃。 100%的时间。

输入控件不一定是textarea。我使用文本框体验过同样的事情。

此行为发生在我测试过的3个iphone 7s上。它不会在Iphone 5,Iphone 5SE,Iphone 6,Iphone 6S或Ipad Mini上发生。

有没有其他人经历过这个?

回答

0

禁用iphone 7上的“3D Touch”可以解决此问题。