随笔分类 - js
js相关技术
摘要://鼠标移入移出,改变图片大小 $(document).ready(function(){ $('#large').mouseenter(function(){ var wValue=1.5 * $(this).width(); var hValue=1.5 * $(this).height(); ...
阅读全文
摘要:1,网站cookie 2, Web Storage相当于cookie,当存储量大于cookie
阅读全文
摘要:1,z-index:9999;position:absolute;top:0;width:100%;height:100%;background-color: #ccc;opacity: 0.7;////页面整体高度,包含滚动条未到位置 2,var height = $(document).heig
阅读全文
摘要:click() 对象.click() 使对象被点击。closed 对象.closed 对象窗口是否已封闭true/falseclearTimeout(对象) 清除已设置的setTimeout对象clearInterval(对象) 清除已设置的setInterval对象confirm("提示信息")
阅读全文
摘要:document.onkeydown=function(){ if(window.event.keyCode == 13){ do something } 1 keycode 8 = BackSpace BackSpace 2 keycode 9 = Tab Tab 3 keycode 12 = Clear 4 keycode 13 = Enter 5 keycode 16 = S...
阅读全文
摘要:e1.sort(function(a,b){ return parseInt($(a).attr('order')-$(b).attr('order')); }); e2.sort(function(a,b){ return parseInt($(a).attr('order')-$(b).attr('order')...
阅读全文
摘要:document.onclick =function(e){ var target = e.target; var tc = target.className; if(tc.indexOf('ishow') ===-1){ $('.apdetail').addClass('cross-hide'); } ...
阅读全文
摘要:String time = "2012-12-12 12:12";Date t = new Date(time);var mill = t.getTime();
阅读全文

浙公网安备 33010602011771号