命令:$ gem sources --remove
https://rubygems.org///等有反应之后再敲入以下命令$ gem sources -a
https://ruby.taobao.org/为了验证你的Ruby镜像是并且仅是taobao,可以用以下命令查看:$ gem sources...
分类:
其他好文 时间:
2014-06-29 15:06:52
阅读次数:
216
块状元素 block element容器元素 设置高宽 width height 可以容纳
文本 内脸 和其他块状霸道 独占一行特例:form 只容纳
块状元素常见元素http://www.w3cfuns.com/portal.php?mod=topic&quickforward=1&topicid...
分类:
Web程序 时间:
2014-05-29 02:56:46
阅读次数:
352
Text类型文本类型由Text类型表示,包含纯文本内容,可以包含转义后的HTML字符,但不能包含HTML代码。Text节点具有以下特征:nodeType的值为3;nodeName的值为"#text";nodeValue的值为节点所包含的文本;parentNode是一个Element;不支持(没有)子...
分类:
编程语言 时间:
2014-05-29 02:37:10
阅读次数:
376
一、dom4jimport org.dom4j.Document;import
org.dom4j.DocumentException;import org.dom4j.DocumentHelper;import
org.dom4j.Element; Document docu...
分类:
其他好文 时间:
2014-05-28 23:05:00
阅读次数:
284
题目: Say you have an array for which the ith element
is the price of a given stock on day i. Design an algorithm to find the maximum
profit. You may co...
分类:
其他好文 时间:
2014-05-28 22:37:18
阅读次数:
327
? 表示不确定的java类型,类型是未知的。T 表示java类型。K V
分别代表java键值中的Key Value。E 代表Element,特性是枚举。
分类:
编程语言 时间:
2014-05-28 19:49:16
阅读次数:
235
题目: Say you have an array for which the ith element
is the price of a given stock on day i. If you were only permitted to complete
at most one transac...
分类:
其他好文 时间:
2014-05-28 00:55:20
阅读次数:
288
题目: Say you have an array for which the ith element
is the price of a given stock on day i. Design an algorithm to find the maximum
profit. You may co...
分类:
其他好文 时间:
2014-05-28 00:53:26
阅读次数:
338
Element.firstChild ?,是的,这是第一种方法,当然,通常来说支持 W3C
规范的浏览器,如 Firefox 等取到的应该是 TEXT_NODE。很早之前,或者说现在最流行的方法可能是
分类:
其他好文 时间:
2014-05-27 17:41:53
阅读次数:
520
这篇文章纯粹是为了保存这些方法,供以后翻阅,其实一直保存在 evernote
里面,但觉得还是放到对的地方会好点。现在收录的很少,希望以后会慢慢增多。数组扩展contains,remove 扩展 1 function
ArrayContains(array, obj) { 2 for (va...
分类:
编程语言 时间:
2014-05-27 16:49:27
阅读次数:
262