上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: 网址来源:http://www.html-js.com/article/JS-rookie-in-the-rookie-to-start-learning-to-fly-the-commonly-used-string-method-in-JavaScriptindexOf(str)返回字符串中参数... 阅读全文
posted @ 2014-12-16 16:57 joya 阅读(175) 评论(0) 推荐(0) 编辑
摘要: step 步数speed 速度count 次数index 索引,下标 阅读全文
posted @ 2014-10-12 11:33 joya 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 基础第一课: 1、 $(obj)获取的是一个集合,因此length最小是1, jquery,如果元素不存在,也不会报错,可通过$(obj).length $('div[class="color1 color2"]'),属性值中有空格,需要用到引号基础第二课: 1、slice... 阅读全文
posted @ 2014-10-10 23:27 joya 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 方法一:location.hash = 'abc'window.onhashchange = function(){}location.hash 返回结果 #abc => location.hash.substring(1) abc方法二:存历史:history.pushstate(数据,标题,网址... 阅读全文
posted @ 2014-09-03 21:53 joya 阅读(108) 评论(0) 推荐(0) 编辑
摘要: css3图片与文字3D transform切换: http://www.w3cplus.com/demo/419.html详细的CSS3属性详解: http://www.zhangxinxu.com/wordpress/2012/09/css3-3d-transform-perspective-... 阅读全文
posted @ 2014-05-23 17:15 joya 阅读(524) 评论(0) 推荐(0) 编辑
摘要: 元字符: \t 水平制表符Tab\v 垂直制表符 \n 换行 \r 回车 \0 空字符 \f 换页符 \cX ctrl+X 字符类: [] a[ab]c=>aac、abc [^] 表示取反 范围类: [a-z] 预定义类及边界: . 任意字符(除回车和换行) \d 数字 \D 非数字 \s 空白符 阅读全文
posted @ 2014-05-21 21:12 joya 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 快速排序 思想: 1、找到一个基准点 2、建立两个数据,分别存放左边和右边的数组 3、利用递归的原理进行比较 arr = [1,6,3,4,5] 步骤 : 1,6,3,4,5 1,3,6,4,5 1,3,4,6,5 1,3,4,5,6 注意: ... 阅读全文
posted @ 2014-05-20 21:29 joya 阅读(126) 评论(0) 推荐(0) 编辑
摘要: console.log()console.warn() 警告console.error() 错误console.group() 分组 console.grounpEnd() 分组结束console.dir() 输出所有信息var cat = {};cat.name = "mm";cat.sex ... 阅读全文
posted @ 2014-05-16 23:21 joya 阅读(135) 评论(0) 推荐(0) 编辑
摘要: window下: 快捷方式 地址后面加上 --disable-web-security MAC下: 阅读全文
posted @ 2014-05-16 18:45 joya 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 页面控制iframe元素iframe元素.contentWindow.document.getElementById(''); //iframe元素.contentWindow为iframe对象iframe元素.contentDocument.getElementById(''); //ifra... 阅读全文
posted @ 2014-05-13 23:15 joya 阅读(226) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 9 下一页