【发布时间】:2025-12-22 07:10:12
【问题描述】:
早上好, 我在使用 MasterPage 和 jQuery 时遇到问题。我使用带有自定义主题的 jQuery UI,我会喜欢所有按钮的集合设计来设计 jQuery UI 按钮。 在 MasterPage 中有:
<script src="js/jquery-1.4.4.min.js" type="text/javascript"></script>
<script src="js/jquery-ui-1.8.10.custom.min.js" type="text/javascript"></script>
<script src="js/i18n/jquery-ui-i18n.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
// destroy all dialogs
$('#dialog:ui-dialog').dialog('destroy');
// set buttons
$('input:submit, button').button();
});
</script>
在默认的 aspx 页面上,我有一个 asp:Button,它看起来像 jQuery UI 按钮。但是在目录中的其他 aspx 页面中,我有一些 asp:TextBox 和一个 asp:Button 并且出现错误: Microsoft JScript - 运行程序中的错误:属性 $ 具有 Null 值或未定义。属性不是函数的对象。 而且按钮不像 jQuery UI 按钮那样看。 怎么了? 谢谢你,祝你有美好的一天。
【问题讨论】:
标签: jquery asp.net jquery-ui webforms