w491797259
2019-07-08 16:05 阅读 335

jQuery toggle连续点击事件报错 "Uncaught TypeError: undefined is not a function"






<br> $(document).ready(function(){<br> $(&#39;#bd&#39;).toggle(<br> function(){<br> $(&quot;body&quot;).css(&quot;background-color&quot;,&quot;aliceblue&quot;);<br> },<br> function(){<br> $(&quot;body&quot;).css(&quot;background-color&quot;,&quot;aquamarine&quot;);<br> },<br> function(){<br> $(&quot;body&quot;).css(&quot;background-color&quot;,&quot;bisque&quot;);<br> }<br> );<br> })<br>




  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

相关推荐