我在jquery-mobile中開發webapp時遇到了一些奇怪的問題。 當我提示提醒時,如果我觸摸頁面的某些輸入,iOS Safari & Chrome會完全凍結,我只能用任務管理器關閉它們。javascript快速凍結iOS瀏覽器
我很困惑,如果它是蘋果故障或它是我的。
一些代碼片段:
$('.checkout-comprar-button').click(function(){
alert("hola!!!");
});
這是事件的DIV:
<div class="grp-bottombar-button checkout-comprar-button" style="width: 50% !important; float: right !important; display: block !important; padding-top: 12px;">
<span class="green-desplegable grp-bottombar-button-text">
<? echo _("checkoutcreditcard.seguircompra"); ?>
</span>
</div>
這是一個輸入:
<div class="checkout-datos-numero checkout-first-form checkout-form-field-container">
<div class="checkout-field">
<input type="tel" placeholder="<? echo _('creditcard.numero'); ?>" name="" id="checkout-num-tarjeta" maxlength="30" />
</div>
</div>
的警報後,如果我想關注一些輸入,瀏覽器會凍結。 當我強制關閉Safari瀏覽器,這是一個控制檯給我的留言:
<Warning>: MobileSafari[2985] has active assertions beyond permitted time:
{(
<BKProcessAssertion: 0x1e857480> identifier: Suspending process: MobileSafari[2985] permittedBackgroundDuration: 10.000000 reason: suspend owner pid:26 preventSuspend preventThrottleDownCPU preventThrottleDownUI
)}
<Warning>: Forcing crash report of MobileSafari[2985]...
任何幫助嗎? 謝謝
任何想法,什麼情況下造成的嗎?任何解決方法或任何東西? – Erhannis