摘要: zepto This is a headingThis is a paragraph.This is another paragraph.切换段落的 "main" 类 zepto This is a heading Apple IBM Mi... 阅读全文
posted @ 2014-12-16 18:05 小猩猩君 阅读(1729) 评论(0) 推荐(0) 编辑
摘要: togglevar input = $('input[type=text]'); $('#too_long').toggle(input.val().length < 5); 阅读全文
posted @ 2014-12-16 18:02 小猩猩君 阅读(632) 评论(0) 推荐(0) 编辑
摘要: var ss = ['1', '2', '3', '4', '5', '6']; console.log(ss.slice(2,4)); 阅读全文
posted @ 2014-12-16 17:58 小猩猩君 阅读(174) 评论(0) 推荐(0) 编辑
摘要: The longest word in the english dictionary is: pneumonoultramicroscopicsilicovolcanoconiosis.把滚动条的水平位置设置为 100px$("button").click(function(){ ... 阅读全文
posted @ 2014-12-16 17:46 小猩猩君 阅读(713) 评论(0) 推荐(0) 编辑
摘要: var arr = ['1', '2', '3', '4']; arr.push('qwe'); console.log(arr); 阅读全文
posted @ 2014-12-16 17:31 小猩猩君 阅读(341) 评论(0) 推荐(0) 编辑
摘要: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Reducevar ss = [0, 1, 2, 3, 4].reduce(function (previousValue, ... 阅读全文
posted @ 2014-12-16 17:30 小猩猩君 阅读(280) 评论(0) 推荐(0) 编辑