2017年5月10日
摘要: 1.indexOf,filter,forEach,map,reduce实例 链接:http://www.jb51.net/article/60502.htm 2.join,reverse,slice,push,pop,unshift,shift 链接:http://www.jb51.net/arti 阅读全文
posted @ 2017-05-10 00:14 飞翔吧菜鸟23 阅读(74) 评论(0) 推荐(0) 编辑
  2017年3月29日
摘要: 1。同级li标签需要在一行水平排列时,使用display:inline-block,不建议使用float。 2。标签之间有莫名其妙的间隙,可以用font-size:0。 阅读全文
posted @ 2017-03-29 10:29 飞翔吧菜鸟23 阅读(83) 评论(0) 推荐(0) 编辑
  2017年3月3日
摘要: 1.ajax:“Asynchronous Javascript And XML”(异步JavaScript和XML),是指一种创建交互式网页应用的网页开发技术。 2.ajax的js写法 get请求:一般用于查询数据,用url传参 post请求:用于修改服务器的数据,不限制发送信息的数量 readyS 阅读全文
posted @ 2017-03-03 17:47 飞翔吧菜鸟23 阅读(105) 评论(0) 推荐(0) 编辑
  2017年2月27日
摘要: display 的属性值有:none|inline|block|inline-block|list-item|run-in|table|inline-table|table-row-group|table-header-group|table-footer-group|table-row|table 阅读全文
posted @ 2017-02-27 11:45 飞翔吧菜鸟23 阅读(266) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/sofia92/article/details/50469948 阅读全文
posted @ 2017-02-27 11:39 飞翔吧菜鸟23 阅读(59) 评论(0) 推荐(0) 编辑
  2017年2月22日
摘要: 参考 http://www.cnblogs.com/walkingp/archive/2010/02/03/1662872.html 1.注册事件 2.节流,防止滚轮一次,触发两次事件 阅读全文
posted @ 2017-02-22 16:20 飞翔吧菜鸟23 阅读(79) 评论(0) 推荐(0) 编辑
  2017年2月9日
摘要: 1 var txt; 2 if(window.getSelection) 3 { 4 txt = window.getSelection().toString(); 5 } 6 else 7 { 8 txt = document.selection.createRange().text; 9 } 阅读全文
posted @ 2017-02-09 16:14 飞翔吧菜鸟23 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 1. offsetWidth:width + padding + border clientWidth:width + padding (不包含border) scrollWidth:大小是内容的大小 2. event.ClientX:鼠标相对于客户窗口的横坐标 event.ClientY:鼠标相对 阅读全文
posted @ 2017-02-09 11:47 飞翔吧菜鸟23 阅读(187) 评论(0) 推荐(0) 编辑
  2017年2月7日
摘要: 1.添加文字,图片 2.插入符号,如括号“()” 3.标题嵌套 运行结果如下: 阅读全文
posted @ 2017-02-07 15:13 飞翔吧菜鸟23 阅读(162) 评论(0) 推荐(0) 编辑
  2017年2月3日
摘要: var btn = document.getElementById("btn"); document.onclick = function(){ alert("document"); } btn.onclick = function(event){ alert("btn"); var event = event || window.event; if( event && even... 阅读全文
posted @ 2017-02-03 16:31 飞翔吧菜鸟23 阅读(101) 评论(0) 推荐(0) 编辑