随笔分类 -  js

摘要:类似这样:function aa(vote){alert(vote);}$(".btnn").bind("click",aa(1)});没有点击就开始执行了。怎么处理解决:$(".btnn").bind("click",function(){aa(1)})或者:var self=this;$(".c 阅读全文
posted @ 2018-04-17 14:45 nohuman 阅读(719) 评论(0) 推荐(0)
摘要:wow.js 鼠标下滑效果。 fullpage.js 翻屏效果 http://www.dowebok.com/143.html http://www.dowebok.com/77.html 阅读全文
posted @ 2017-11-14 16:32 nohuman 阅读(181) 评论(0) 推荐(0)
摘要:test.js 参考原文链接:http://caibaojian.com/detect-ie-version.html 阅读全文
posted @ 2017-01-13 11:09 nohuman
摘要:http://www.jb51.net/article/78342.htm offsetLeft:相对于定位的父元素的距离,left和margin的和 阅读全文
posted @ 2017-01-04 11:37 nohuman
摘要:Web前端开发是从网页制作演变而来的,名称上有很明显的时代特征。在互联网的演化进程中,网页制作是Web1.0时代产物,那时网站的主要内容是静态的,用户使用网站的行为也以浏览为主。2005年以后,互联网进入Web2.0时代,各种类似桌面软件的Web应用大量涌现,网站的前端由此发生了翻天覆地的变化。网页 阅读全文
posted @ 2016-11-16 10:36 nohuman
摘要:有文档声明(即网页第一句的docType)的情况下,标准浏览器是只认识documentElement.scrollTop的,【但chrome却不认识,在有文档声明时,chrome也只认识document.body.scrollTop.】 document.body.scrollTop与documen 阅读全文
posted @ 2016-10-20 11:57 nohuman
摘要:http://wenrunchang123.iteye.com/blog/1684843 阅读全文
posted @ 2016-10-20 11:15 nohuman
摘要:1、各浏览器下 scrollTop的差异 IE6/7/8: 对于没有doctype声明的页面里可以使用 document.body.scrollTop 来获取 scrollTop高度 ; 对于有doctype声明的页面则可以使用 document.documentElement.scrollTop; 阅读全文
posted @ 2016-10-18 13:54 nohuman
摘要:(function($) { $.fn.menu = function(b) { var c, item, httpAdress; b = jQuery.extend({ Speed: 220, autostart: 1, autohide: 1 }, b); c = $(this); item = 阅读全文
posted @ 2016-09-07 18:06 nohuman