ASP.NET 和js树
我有这个中继器:
<asp:Repeater ID="rptContentPageGetAll" runat="server" OnLoad="rptContentPagesGetAll_Load">
<HeaderTemplate>
<ul class="contentPageTree">
</HeaderTemplate>
<ItemTemplate>
<li><%# Eval("title") %></li>
</ItemTemplate>
<FooterTemplate>
</ul>
</FooterTemplate>
</asp:Repeater>
我尝试了 Scripts.js 中的核心代码:
jQuery(".contentPageTree")
.jstree({
core : { },
plugins : [ "themes", "html_data", "some-other-plugin" ]
});
没有任何效果,我尝试环顾四周,发现任何东西都不起作用。有人可以帮助我开始吗?
另外我的js结构如下:
js
-> jsTree.v.1.0
->-> jQuery.jstree.js
jquery.min.js
script.js
是的,我将 js 文件包含在我的母版页中
<script language="javascript" src="../js/jsTree.v.1.0/_lib/jquery.js" type="text/javascript"></script>
<script language="javascript" src="../js/jsTree.v.1.0/jquery.jstree.js" type="text/javascript"></script>
<script language="javascript" src="../js/jsTree.v.1.0/_lib/jquery.cookie.js" type="text/javascript"></script>
<script language="javascript" src="../js/scripts.js" type="text/javascript"></script>
I have this repeater:
<asp:Repeater ID="rptContentPageGetAll" runat="server" OnLoad="rptContentPagesGetAll_Load">
<HeaderTemplate>
<ul class="contentPageTree">
</HeaderTemplate>
<ItemTemplate>
<li><%# Eval("title") %></li>
</ItemTemplate>
<FooterTemplate>
</ul>
</FooterTemplate>
</asp:Repeater>
and I tried the core code in Scripts.js:
jQuery(".contentPageTree")
.jstree({
core : { },
plugins : [ "themes", "html_data", "some-other-plugin" ]
});
Nothing was working, I tried looking around and anything i found didn't work. Can anyone help me getting started?
Also my js structure is as followed:
js
-> jsTree.v.1.0
->-> jQuery.jstree.js
jquery.min.js
scripts.js
and yes I am including the js files in my master page
<script language="javascript" src="../js/jsTree.v.1.0/_lib/jquery.js" type="text/javascript"></script>
<script language="javascript" src="../js/jsTree.v.1.0/jquery.jstree.js" type="text/javascript"></script>
<script language="javascript" src="../js/jsTree.v.1.0/_lib/jquery.cookie.js" type="text/javascript"></script>
<script language="javascript" src="../js/scripts.js" type="text/javascript"></script>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)