1. <small id='kMK3O'></small><noframes id='kMK3O'>

        <bdo id='kMK3O'></bdo><ul id='kMK3O'></ul>
      <i id='kMK3O'><tr id='kMK3O'><dt id='kMK3O'><q id='kMK3O'><span id='kMK3O'><b id='kMK3O'><form id='kMK3O'><ins id='kMK3O'></ins><ul id='kMK3O'></ul><sub id='kMK3O'></sub></form><legend id='kMK3O'></legend><bdo id='kMK3O'><pre id='kMK3O'><center id='kMK3O'></center></pre></bdo></b><th id='kMK3O'></th></span></q></dt></tr></i><div id='kMK3O'><tfoot id='kMK3O'></tfoot><dl id='kMK3O'><fieldset id='kMK3O'></fieldset></dl></div>

      1. <tfoot id='kMK3O'></tfoot>

      2. <legend id='kMK3O'><style id='kMK3O'><dir id='kMK3O'><q id='kMK3O'></q></dir></style></legend>

        jQuery 无法正确渲染

        时间:2024-04-19
        • <small id='sI9Ya'></small><noframes id='sI9Ya'>

          1. <i id='sI9Ya'><tr id='sI9Ya'><dt id='sI9Ya'><q id='sI9Ya'><span id='sI9Ya'><b id='sI9Ya'><form id='sI9Ya'><ins id='sI9Ya'></ins><ul id='sI9Ya'></ul><sub id='sI9Ya'></sub></form><legend id='sI9Ya'></legend><bdo id='sI9Ya'><pre id='sI9Ya'><center id='sI9Ya'></center></pre></bdo></b><th id='sI9Ya'></th></span></q></dt></tr></i><div id='sI9Ya'><tfoot id='sI9Ya'></tfoot><dl id='sI9Ya'><fieldset id='sI9Ya'></fieldset></dl></div>
              <bdo id='sI9Ya'></bdo><ul id='sI9Ya'></ul>
              <legend id='sI9Ya'><style id='sI9Ya'><dir id='sI9Ya'><q id='sI9Ya'></q></dir></style></legend>
                <tbody id='sI9Ya'></tbody>
              <tfoot id='sI9Ya'></tfoot>

                  本文介绍了jQuery 无法正确渲染的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用这个 jQuery 来呈现一个文本框 onClick.但是,它不是渲染......另外,我使用的是 Drupal 7.我在 html.php 的 Head 标签中有 jQuery.

                  I'm using this jQuery to render a text box onClick. But, It's not rendering... Also, on a side note I'm using Drupal 7. I have the jQuery in the Head tags of the html.php.

                   <script type="text/javascript">
                  
                    $(document).ready(function() {
                  
                      $("#front-background").hide();
                  
                          $(window).load(function() {
                  
                              $('#links-top-1').hover(function() {
                  
                                  $('#front-background').fadeIn(2000);
                  
                              });
                  
                          });
                  
                    });
                  
                    </script>
                  

                  推荐答案

                  这也可能是因为 Drupal 如何处理与其他 JavaScript 库的兼容性.

                  This may also be because of how Drupal handles compatibility with other JavaScript libraries.

                  您可以将 jQuery 函数包装在:

                  You can wrap your jQuery function in:

                  (function ($) {
                      //your existing code
                  })(jQuery);
                  

                  或者如果您喜欢使用 template.php 文件进行主题化,您可以通过函数 drupal_add_js() 添加 JS.

                  or if you're comfortable theming using the template.php file, you can add the JS through the function drupal_add_js().

                  有关详细信息,请参阅 http://drupal.org/node/171213.

                  See http://drupal.org/node/171213 for more details.

                  这篇关于jQuery 无法正确渲染的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Drupal 7 Field API:如何以编程方式发送表单元素的#ajax属性中指定的AJAX请求? 下一篇:Drupal:如何使用 AJAX POST 从 REST 服务提交 webfrom

                  相关文章

                    1. <tfoot id='GDGXm'></tfoot>
                        <bdo id='GDGXm'></bdo><ul id='GDGXm'></ul>
                    2. <small id='GDGXm'></small><noframes id='GDGXm'>

                      <i id='GDGXm'><tr id='GDGXm'><dt id='GDGXm'><q id='GDGXm'><span id='GDGXm'><b id='GDGXm'><form id='GDGXm'><ins id='GDGXm'></ins><ul id='GDGXm'></ul><sub id='GDGXm'></sub></form><legend id='GDGXm'></legend><bdo id='GDGXm'><pre id='GDGXm'><center id='GDGXm'></center></pre></bdo></b><th id='GDGXm'></th></span></q></dt></tr></i><div id='GDGXm'><tfoot id='GDGXm'></tfoot><dl id='GDGXm'><fieldset id='GDGXm'></fieldset></dl></div>
                      <legend id='GDGXm'><style id='GDGXm'><dir id='GDGXm'><q id='GDGXm'></q></dir></style></legend>