我正在使用UIWebview,在选择下拉列值时会有一些下拉菜单。我正在调用javascript警报 它冻结了iPad中的应用程序。点击设备主页按钮&打开应用程序取消冻结应用程序
<cfcontent reset="true" /><!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=320, initial-scale=3">
<title>freeze!</title>
</head>
<body>
</div>
<div style="height: 100px;">
<select> with onchange event
<select id="select" onchange= "actualFunction()">
<option value="ONE">one</option>
<option value="TWO">two</option>
<option value="THREE">three</option>
</select>
app freezes on selection because of javascript blocking onchange
event
</div> <!--- <div style="clear: both;"></div>
<div style="width: 25%; float: left;">
<select id="three">
<option value="ONE">one</option>
<option value="TWO">two</option>
<option value="THREE">three</option>
</select>
</div> --->
js function
function actualFunction()
{
if(document.getElementById('select').value !="d")
{
alert('yes');
}
}