08 2015 档案

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