【问题标题】:jquery ui: google api : including sortablesjquery ui: google api: 包括 sortables
【发布时间】:2010-10-16 02:55:10
【问题描述】:

我已经包含了来自 google api 的 jquery 和 jqueryui 如下

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.min.js"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>

我想使用 jquery ui 可排序工具。我是否需要包含更多库才能这样做?

我试过了

<script type="text/javascript">
    $(function() {
        $("#sortable").sortable();
    });
    </script>

但对我没有用,请帮助

【问题讨论】:

    标签: jquery jquery-ui jquery-ui-sortable


    【解决方案1】:

    反转脚本引用。

    首先你需要jQuery(核心),然后是jQuery UI

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3 jquery.min.js"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.min.js"></script>
    

    【讨论】:

      猜你喜欢
      • 2011-09-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-07-24
      • 1970-01-01
      • 2011-04-25
      • 1970-01-01
      相关资源
      最近更新 更多