gpt4 book ai didi

jquery错误: Object expected

转载 作者:行者123 更新时间:2023-12-01 03:50:18 25 4
gpt4 key购买 nike

这是我在 aspx 页面中的代码

<head runat="server">
<title></title>
<script src="//Scripts/jquery-1.4.1.js" type="text/javascript"> </script>
<script type="text/javascript">
$(document).ready(function () {
$("#divGridView table tbody tr").mouseover(function () {
$(this).addClass("highlightRow");
}).mouseout(function () { $(this).removeClass('highlightRow'); })
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div id="divGridView">
<asp:GridView ID="gvOpenSII" runat="server">
</asp:GridView>

当我运行此代码时,出现错误:“Jquery 运行时错误:预期对象”。

我想在鼠标悬停时突出显示 gridview 中的特定行。

请帮忙..

最佳答案

我会仔细检查脚本标签的 src 属性。尝试一下

<script src="/Scripts/jquery-1.4.1.js" type="text/javascript"> </script>

或者也许

<script src="Scripts/jquery-1.4.1.js" type="text/javascript"> </script>

关于jquery错误: Object expected,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9412375/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com