<head>
<script type="text/javascript">
document.onreadystatechange = WaitForComplete;
function WaitForComplete () {
console.log ("The state of the document: " + document.readyState);
}
function OnLoad () {
con
我有一个使用悬停状态的标题菜单。在悬停时,li的颜色会更改,而子ul将在下面打开。
为了在触控设备上工作,我还为这些元素添加了一个'hover‘类,脚本如下:
$(".isc-primary-nav li.has-children a.nav-link.hoverable").unbind().on("touchstart", function (e) {
'use strict';
var li = $(this).parent().parent();
if (li.hasClass("hover"