随笔 - 11  文章 - 2  评论 - 1

06 2016 档案

摘要:封装自己的getClass 阅读全文
posted @ 2016-06-18 10:15 Double405 阅读(221) 评论(0) 推荐(0)
摘要:getClessName 阅读全文
posted @ 2016-06-17 02:11 Double405 阅读(1075) 评论(0) 推荐(0)
摘要:first time purchase Alternate(s) offer: 阅读全文
posted @ 2016-06-10 00:54 Double405 阅读(885) 评论(0) 推荐(0)
摘要:1.写插件部分,如下: ;(function($){ $.fn.plugin = function(options){ var defaults = { //各种属性,各种参数 } var options = $.extend(defaults, options); this.each(functi 阅读全文
posted @ 2016-06-05 22:13 Double405 阅读(1177) 评论(0) 推荐(0)
摘要:1 一般给元素设置行内样式,如。如要获取它的样式,即可document.getElementById("div1").style.width来获取或设置。但是如果样式是在外链link中的或者是页面的非行内样式,就获取不到了。 2 3 在标准浏览器中可以通过window.getComputedStyll(obj,null)[property]来获取外链样式,但是在ie浏览器中则是通过obj... 阅读全文
posted @ 2016-06-04 01:53 Double405 阅读(1426) 评论(0) 推荐(0)
摘要:再谈js的作用域 面试中遇到的题目: 题目一: var word = "hello world"; (function(){ alert(word); var word = "hello test"; })(); 效果 http://keleyi.com/keleyi/phtml/js/1.htm 阅读全文
posted @ 2016-06-04 01:49 Double405 阅读(132) 评论(0) 推荐(0)