0

So I am new to using JS and I have looked over the list.js site and can't seem to figure this out. I can't even get the demo to run on my server. I can get my code to work on web based places like Encode and what not, but not my server.

http://brewingbard.biz/smm/test/main-list2.html

Can someone please tell me why this is failing? I copy stuff that works in one place and put it up here and then it stops.

4

2 回答 2

3
<script src="list.js" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>

每个<script>标签只能有一个 src.

您需要将每个脚本加载到其自己的元素中。

于 2013-12-17T15:42:28.437 回答
3

您的代码在<div id="users">存在之前正在运行。
因此,它没有什么可操作的。

将调用脚本块移动到元素下方。

于 2013-12-17T15:55:13.427 回答