摘要: 1 var bb_mes_con = $('bb_mes_con');2 var mes_html = document.createElement('div');3 mes_html.setAttribute('id', 'mes_html');4 mes_html.innerHTML = ""+... 阅读全文
posted @ 2015-01-09 18:10 暗语321 阅读(582) 评论(0) 推荐(0) 编辑
摘要: 第一点:首先appendChild插入节点时返回的值是插入的节点本身,另外必须要找到所要插入的父节点:1 var returnNode = parentNode.appendChild(childNode);2 console.log(returnNote===childNode);//true第二... 阅读全文
posted @ 2015-01-09 17:34 暗语321 阅读(1350) 评论(0) 推荐(0) 编辑
摘要: 浮动标准:W3C CSS 2.1 规范文档里对于浮动元素与非浮动行内元素相邻时的情况有如下解释。以下是关键段落:A floated box is shifted to the left or right until its outer edge touches the containing bloc... 阅读全文
posted @ 2015-01-09 13:45 暗语321 阅读(226) 评论(0) 推荐(0) 编辑
摘要: >>;~~;Math.floor();Math.ceil();parseInt();都可以做到取整的效果,下面看看他们具体的不同点: 1 console.log(-2.6>>0); 2 console.log(2.6>>0); 3 console.log(~~-2.6); 4 console.log... 阅读全文
posted @ 2015-01-09 13:19 暗语321 阅读(1545) 评论(0) 推荐(0) 编辑