不允许使用http错误405方法slidetoggle()

时间:2013-07-18 20:02:26

标签: javascript jquery html

我需要在我的页面和此脚本中使用SlideToggle()方法

  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>    
  <button id="button">button</button>
  <p class="align">text</p>
  <script>
       $(document).ready(function(){
           $("#button").click(function(){
               $(".align").slideToggle(800);
           });
       });
  </script>

完美无缺,直到我将其插入我的页面。当我按下按钮时,我不允许405方法(使用webmatrix),当我从Windows资源管理器运行页面时,什么也没有。 我不使用该页面的任何其他js。也许某人已经遇到过这个问题?

0 个答案:

没有答案
相关问题