嗨,我对 jquery 非常陌生,并将其组合到我的 asp.net 工作中。
我已经阅读了您注册 jquery 文件的顺序,所以我将核心文件放在顶部?我真的不明白我在这里出了什么问题:
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<asp:PlaceHolder runat="server" ID="ph">
<script src="development-bundle/ui/jquery.ui.core.js" type="text/javascript"> </script>
<script src="development-bundle/jquery-1.7.2.js" type="text/javascript"></script>
<script src="development-bundle/ui/jquery.ui.draggable.js" type="text/javascript"> </script>
<script type="text/javascript">
$(function () {
$("#draggable").draggable();
});
</script>
</asp:PlaceHolder>
<asp:Panel ID="pnl_deck_holder" runat="server">
</asp:Panel>
<div id="draggable" class="ui-widget-content">
drag me
</div>
</asp:Content>