我想在iOS应用程序中使用FastClick.我下载了fastclick并将其包含在我的标题中,如下所示:
<Meta name="format-detection" content="telephone=no" /> <Meta charset="utf-8" /> <Meta name="viewport" content="user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1" /> <link rel="stylesheet" type="text/css" href="css/jquery.mobile-1.4.2.css" /> <link rel="stylesheet" type="text/css" href="css/stylesheet.css" /> <script type="text/javascript" src="js/jquery-1.11.1.js"></script> <script type="text/javascript" src="js/jquery.mobile-1.4.2.js"></script> <script type="text/javascript" src="js/fastclick.js"></script> <script type="text/javascript" src="js/jquery.simpleWeather.min.js"></script> <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
<script> $(function() { FastClick.attach(document.body); }); </script>
但我还没有消除300毫秒的延迟……它仍然存在.我用错了吗?