通过jQuery的动画方法,能够轻松地为网页添加非常精彩的视觉效果,给用户一种全新的体验。 一、show()方法和hide()方法 1、show()方法和hide()方法 show()方法和hide()方法是jQuery中最基本的动画方法。在HTML文档...
分类:
Web程序 时间:
2015-11-17 11:10:34
阅读次数:
290
1.ng-show 和 ng-hide当ng-show=''true''的时候 dom会显示,反之隐藏,通过控制display属性2.ng-if 当ng-if=“true” 的时候,dom显示,反之隐藏,通过创建删除dom节点的方式。3.ng-switch.用法如: 默认的效果 切换...
分类:
其他好文 时间:
2015-11-16 21:01:29
阅读次数:
137
1. 禁止右键点击$(document).ready(function(){ $(document).bind("contextmenu",function(e){ return false; });});2. 隐藏搜索文本框文字Hide when clicked in the search ...
分类:
Web程序 时间:
2015-11-16 15:53:04
阅读次数:
142
1. 禁止右键点击$(document).ready(function(){ $(document).bind("contextmenu",function(e){ return false; });});2. 隐藏搜索文本框文字Hide when clicked in the search ...
分类:
Web程序 时间:
2015-11-16 15:17:53
阅读次数:
204
jQuery语法:jQuery 语法是为 HTML 元素的选取编制的,可以对元素执行某些操作。此是重点,初学一定要知道你学的东西的用途是做什么。基础语法是:$(selector).action()。所有的jQuery就是围绕这个进行的,选取页面的元素再对元素进行某些操作。示例$(this).hide...
分类:
Web程序 时间:
2015-11-12 13:21:48
阅读次数:
274
ng-show:ng-show element will stay in dom, just added a ng-hide attr, so it won't show.ng-if:It has its own scope.Element is not display in the dom if ...
分类:
Web程序 时间:
2015-11-12 06:31:28
阅读次数:
196
$hotGames.html(html).removeClass("hide").show();//代码执行到这里,在ie6下仍然无法正常显示//只有执行了下边的两行代码后,才正常显示。if (isIE6 === true) { $hotGames.css({"position":"absol...
分类:
Web程序 时间:
2015-11-11 22:01:07
阅读次数:
189
/* 查看更多收缩 延生 js效果*/function showAllFriendly(){ $("#allFriendly").show(); $("#someFriendly").hide();}function hideSomeFriendly(){ $("#someFriendly").sh...
分类:
其他好文 时间:
2015-11-11 20:49:20
阅读次数:
188
1、$('#checkbox').click(function(){ if($('#checkbox').is(':checked')) { $(".sendmailhui").hide(); $(".sendmail").show(); }else{ $(...
分类:
其他好文 时间:
2015-11-11 13:04:25
阅读次数:
144
1.基本show()显示效果$(document).ready(function(){ $("button").click(function(){ //$(".one").show(); $(".one").show("slow"); });});hide()隐藏效果$(docum...
分类:
Web程序 时间:
2015-11-11 01:06:14
阅读次数:
212