08 2015 档案
摘要:Options FollowSymLinksAllowOverride NoneOrder deny,allow Allow from all #以前是Deny from all## Possible values for the Options directive are "None", "A...
阅读全文
摘要://跨浏览器兼容问题 Util = { //添加类名 add : function(ele,type,hand){ if(ele.addEventListener){ ele.addEventListener(type,hand,false); ...
阅读全文
摘要:var _div = document.createElement("div"), //创建节点 txt1 = document.createTextNode("123"), //创建文本 // _b = document.createElement("b"), txt2 = document.c...
阅读全文
摘要:var _li = test.getElementsByTagName("li"), arrayObj = [].slice.apply(_li),//_li用apply调用slice方法(slice方法是类数组转成数组)放入新建的数组【】当中 len = arrayObj.length, i...
阅读全文
摘要:url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和delete也可以使用,但仅部分浏览器支持。timeout: 要求为Number类型的参数,设置请求超...
阅读全文
摘要:$('.tab').click(function(){ var index = $('.tab').index(this), //缓存第一次点击的li的索引值 ele = $(this).find('.ind'); $('.tab').each(function(i){ if(i != in...
阅读全文
摘要:location是javascript里边管理地址栏的内置对象,比如location.href就管理页面的url,用location.href=url就可以直接将页面重定向url。而location.hash则可以用来获取或设置页面的标签值。比如http://domain/#admin的locati...
阅读全文
浙公网安备 33010602011771号