上一页 1 2 3 4 5 6 7 8 ··· 14 下一页

2016年4月18日

摘要: 定义和用法: setInterval() 方法可按照指定的周期(以毫秒计)来调用函数或计算表达式。 setInterval() 方法会不停地调用函数,直到 clearInterval() 被调用或窗口被关闭。由 setInterval() 返回的 ID 值可用作 clearInterval() 方法 阅读全文
posted @ 2016-04-18 11:46 舞纷菲 阅读(26768) 评论(0) 推荐(0) 编辑

2016年3月26日

摘要: 阻止网页元素的默认行为: event.preventDefault(); 或者:return false; 阅读全文
posted @ 2016-03-26 11:16 舞纷菲 阅读(183) 评论(0) 推荐(0) 编辑
 
摘要: 在程序中使用事件对象非常简单,只需为函数添加一个参数,jquery代码如下: $("element").bind("click",function(event){//event:事件对象 //.... }); 这样,当单击“element”元素时,事件对象就被创建了。这个事件对象只有事件处理函数才能 阅读全文
posted @ 2016-03-26 11:14 舞纷菲 阅读(163) 评论(0) 推荐(0) 编辑

2016年3月23日

摘要: <script> $(function(){ $(document).on("click",".addzhankai",function(){ alert('1111111'); }); }); </script> 阅读全文
posted @ 2016-03-23 14:40 舞纷菲 阅读(157) 评论(0) 推荐(0) 编辑

2016年3月21日

摘要: http://www.bootcdn.cn/ 阅读全文
posted @ 2016-03-21 15:49 舞纷菲 阅读(355) 评论(0) 推荐(0) 编辑

2016年3月11日

摘要: $(window).resize(function(){ //process here});window的onresize事件。 $(window).resize(function () { //当浏览器大小变化时 alert($(window).height()); //浏览器时下窗口可视区域高度 阅读全文
posted @ 2016-03-11 15:43 舞纷菲 阅读(1136) 评论(0) 推荐(0) 编辑

2016年3月10日

摘要: 一句话搞定透明背景! .transparent_class { filter:alpha(opacity=50); -moz-opacity:0.5; -khtml-opacity: 0.5; opacity: 0.5; } 阅读全文
posted @ 2016-03-10 13:17 舞纷菲 阅读(220) 评论(0) 推荐(0) 编辑
 
摘要: <script type="text/javascript"> $(function(){ $('.caseslist').hover(function(){ if(!$(this).is(":animated")){ $(this).children('.casedetail').animate( 阅读全文
posted @ 2016-03-10 11:55 舞纷菲 阅读(445) 评论(0) 推荐(0) 编辑

2016年3月4日

摘要: 给listxqbottom div添加a跳转链接 <div class="listxqbottom" onclick="location.href='www.baidu.com'"> </div> 阅读全文
posted @ 2016-03-04 09:50 舞纷菲 阅读(1418) 评论(0) 推荐(0) 编辑

2016年2月19日

摘要: a href="javascript:window.location.href=location.href" 阅读全文
posted @ 2016-02-19 14:22 舞纷菲 阅读(125) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 14 下一页