Javascript 鼠标悬停、鼠标移动和鼠标悬停不工作

Javascript 鼠标悬停、鼠标移动和鼠标悬停不工作,javascript,jquery,html,html-table,mouse,Javascript,Jquery,Html,Html Table,Mouse,这是我的示例代码,我想通过它显示一组子应用程序。我想为Mainapp1和Mainapp2显示一组不同的硬编码值 <table> <tr> <th class="althead" style="border: 0px;width:8%" >MainApp1</th> <th class="althead" style="border: 0px;width:7.5%">MainApp2</th> <

这是我的示例代码,我想通过它显示一组子应用程序。我想为Mainapp1Mainapp2显示一组不同的硬编码值

<table>
  <tr>
    <th class="althead" style="border: 0px;width:8%" >MainApp1</th>
    <th class="althead" style="border: 0px;width:7.5%">MainApp2</th>
  </tr>
</table>  


<div class="Not_Editable">Application1</br>
   Application2</br> Application3<br>Application4<br> Application5<br> Application6<br>
</div>  

只需在代码的head部分添加jquery引用。 您可以使用jQuery CDN进行在线参考

 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>

您使用的是jQuery,而您的网站似乎没有添加jQuery库

您可以通过在html中插入以下代码来添加它:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>


顺便说一句,警报(“鼠标悬停功能”),因为它是一个javascript函数,不需要jQuery。

您正在将代码段包装到一个自调用函数中,是否改为使用document ready包装器<代码>$(函数(){…})此外,您是否在脚本之前附加了jquery文件?它已经可以工作了。。。再见,谢谢。但在我的应用程序中,这不起作用。我应该导入/添加什么吗?jQuery是您需要的,当然在脚本标记之前,如果可能的话,将脚本放在正文的末尾
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>