摘要:
var obj = function(){}定义个叫obj的函数;(function a (){ return xx})();定义了一叫a方法,返回xx; 立即执行.var a = (function(){ var a = 'a'; var b = { xx : function(){}... 阅读全文
摘要:
var style=window.getComputedStyle(element).property(属性);只读属性,不可修改(包括内联样式,以及以外的样式都可获取)IE9一下不支持获取对象的属性值。elm.currentStyle则支持所有的IE。兼容:functiongetConputedS... 阅读全文