码迷,mamicode.com
首页 >  
搜索关键字:element    ( 12012个结果
Single Number
Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime complexity...
分类:其他好文   时间:2014-09-13 20:00:25    阅读次数:195
document,element,node方法
document方法:getElementById(id)返回指定结点的引用getElementsByTagName_r(name)返回文档中所有匹配的元素的集合createElement_x(name)创建指定类型的新结点createTextNode(text)创建一个纯文本结点element方法...
分类:其他好文   时间:2014-09-13 09:21:34    阅读次数:167
LinkedList笔记
LinkedList也像ArrayList一样,实现了List接口,但是他执行某些操 (在List中间的插入和删除)时比ArrayList更高效,但是随即访问方面差一些 方法说明: getFirst()和element()完全一样,他们都返回列表的头 (第一个元素)而并不删除它们,如果List为空则抛出NotSuchElementException peek()方法与这两个稍有差...
分类:其他好文   时间:2014-09-13 00:50:34    阅读次数:268
JavaScript学习笔记(十一)---- DOM扩展
(一)DOM扩展对DOM的主要的扩展是SelectorsAPI(选择符API)和HTML5,还有一个Element Travesal规范。1.选择符APIjQuery的核心就是通过CSS选择符查询DOM文档取得元素的引用,从而抛开了getElementById( ) 和 getElementsByT...
分类:编程语言   时间:2014-09-12 18:59:33    阅读次数:246
Leetcode: Jump Game II
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu...
分类:其他好文   时间:2014-09-12 13:26:43    阅读次数:145
Leetcode: Jump Game
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu...
分类:其他好文   时间:2014-09-12 05:41:53    阅读次数:192
Best Time To Buy And Sell Stock
仅提供个人的一种解题思路,未必是最优,仅供各位参考! /** * * * ClassName SolutionBestTimeToBuyAndSellStock * * * Description Say you have an array for which the ith element is the price of a given stock on day i....
分类:其他好文   时间:2014-09-11 22:28:42    阅读次数:235
js实现给一个标签添加多个class值
在写html跟css的时候,我们会给一些标签起一些class的名字,但是在写js的时候可能也会通过cssName操作css样式,如果只是平常的element.className = "value";的话,那么之前的定义的class会被置空,css中的样式就会受到影响,所以,在js中如果有微调css的...
分类:Web程序   时间:2014-09-11 20:50:22    阅读次数:1474
css框模型
元素的背景是内容、内边距和边框区的背景。css中:width 和 height 指的是内容区域的宽度和高度。增加内边距、边框和外边距不会影响内容区域的尺寸,但是会增加元素框的总尺寸。bootstrap中:width 和 height 指的是包含border、padding、element的框的总尺寸...
分类:Web程序   时间:2014-09-11 19:03:42    阅读次数:238
UI层的松耦合
总结:1.不使用CSS表达式2.将css从javascript中抽离,如element.style.color = "red"; element.style.cssText = "color: red; left: 10px;"这种方法将来重新定义样式的时候修改起来很复杂,最佳方法仍是操作css的c...
分类:其他好文   时间:2014-09-10 12:14:50    阅读次数:196
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!