【问题标题】:onclick fire only after three clicksonclick 仅在单击三下后触发
【发布时间】:2012-12-04 12:27:32
【问题描述】:

我在 html5 上有 phonegap 应用程序,带有 kendo ui。 我的按钮在浏览器上工作正常,但在 android 设备上我需要点击三下才能触发警报。 这是我的代码:

    <!DOCTYPE html>
<html>
<head>
<title></title>
<script src="js/jquery-1.8.2.js"></script>
<script src="js/kendo.all.min.js"></script>
<link href="styles/kendo.mobile.all.min.css" rel="stylesheet" />
<link href="styles/kendo.common.min.css" rel="stylesheet" />
<link href="styles/kendo.default.min.css" rel="stylesheet" />
</head>

<body>
    <div data-role="view" data-title="Login/Sign-up"
        id="view-transitions-login" data-transition="overlay:left"
        style="background-color: white;">

        <input type="button" id="logButton" value="login"
            style="width: 100px; height: 60px" />
    </div>
    <script>
        $(document).ready(function() {

            $("#logButton").click(function() {
                alert(33);
            });

        });
    </script>

    <script>
        var app = new kendo.mobile.Application(document.body);
    </script>
</body>
</html>

提前致谢。

【问题讨论】:

  • 无法解决您的问题jsfiddle
  • 在浏览器上可以正常工作,但在设备上会出现问题。

标签: android html kendo-ui


【解决方案1】:

我找到了答案。 我使用了最新版本的 kendo.all.min,这导致了问题。 我更改了文件,一切正常。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-08-26
    • 2020-05-01
    • 2014-09-19
    相关资源
    最近更新 更多