网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

jQuery基础知识点有哪些-创新互联

这篇文章将为大家详细讲解有关jQuery基础知识点有哪些,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。

超过10余年行业经验,技术领先,服务至上的经营模式,全靠网络和口碑获得客户,为自己降低成本,也就是为客户降低成本。到目前业务范围包括了:网站制作、成都网站建设,成都网站推广,成都网站优化,整体网络托管,微信小程序,微信开发,app软件开发,同时也可以让客户的网站和网络营销和我们一样获得订单和生意!

jQuery语法实例

  • $(this).hide()

  • jQuery 的 hide() 函数,隐藏当前的 HTML 元素。

  • $("p").hide()

  • jQuery 的 hide() 函数,隐藏所有

    元素。

  • $(".test").hide()

  • jQuery 的 hide() 函数,隐藏所有 class="test" 的元素。

  • $("#test").hide()

  • jQuery 的 hide() 函数,隐藏 id="test" 的元素。

Hiding - Sliding- Fading

  • jQuery fadeOut()

  • 简单的 jQuery fadeout() 函数。

  • jQuery hide()

  • 简单的 jQuery hide() 函数。

  • Hide explanations

  • 如何隐藏部分文本。

  • Slide panel

  • 简单的 Slide Panel 效果。

  • jQuery animate()

  • 简单的 jQuery animate() 函数。

jQuery:1.1.1,$(this).hide()
    $(document).ready(function(){   $("button").click(function(){   $(this).hide(); }); });     Click me 
 test Click me2 Click me3 Click me4   
jQuery:1.1.2,$("p").hide()
    $(document).ready(function(){ $("button").click(function(){ $("p").hide(); }); });     

This is a heading

 

This is a paragraph.

 

This is another paragraph.

 Click me  
jQuery:1.1.3,$(".test").hide()
    $(document).ready(function() {   $("button").click(function()   {   $(".test").hide();   }); });     This is a heading This is a paragraph.

 

This is another paragraph.

 Click me   
jQuery:1.1.4,$("#test").hide()
    $(document).ready(function(){   $("button").click(function(){     $("#test").hide();   }); });     

This is a heading

 

This is a paragraph.

 This is another paragraph.

 Click me   
jQuery:1.2.1,fadeOut()
    $(document).ready(function(){   $("#test").click(function(){   $(this).fadeOut();   }); });     CLICK ME AWAY!
 

如果您点击上面的框,它会淡出。

   
jQuery:1.2.2.hide()
     $(document).ready(function(){   $("p").click(function(){   $(this).hide();   }); });     

If you click on me, I will disappear.

   
jQuery:1.2.3,explanations
    $(document).ready(function(){ $(".ex .hide").click(function(){ $(this).parents(".ex").hide("slow"); }); });    div.ex { background-color:#e5eecc; padding:7px; border:solid 1px #c3c3c3; }       

Island Trading

  Hide me 

Contact: Helen Bennett  Garden House Crowther Way London

 
  

Paris Trading

  Hide me 

Contact: Marie Bertrand  265, Boulevard Charonne Paris

 
   
jQuery:1.2.4,panel
      $(document).ready(function(){ $(".flip").click(function(){     $(".panel").slideToggle("slow");   }); });      div.panel,p.flip { margin:0px; padding:5px; text-align:center; background:#e5eecc; border:solid 1px #c3c3c3; } div.panel { height:120px; display:none; }         

W3School - 领先的 Web 技术教程站点

 

在 W3School,你可以找到你所需要的所有网站建设教程。

    请点击这里

    
jQuery:1.2.5,animation
     $(document).ready(function(){   $("#start").click(function(){   $("#box").animate({height:300},"slow");   $("#box").animate({width:300},"slow");   $("#box").animate({height:100},"slow");   $("#box").animate({width:100},"slow");   }); });        

Start Animation

       

关于“jQuery基础知识点有哪些”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


标题名称:jQuery基础知识点有哪些-创新互联
本文网址:http://bjjierui.cn/article/ijsss.html

其他资讯