接口Map 一、Map功能 1.添加 put(K key, V value) putAll(Map); 2.删除 clear() remove(Object key); 返回对应的值 3.判断 containsKey(Object key) containsValue(Object value) i...
分类:
其他好文 时间:
2014-07-18 15:06:12
阅读次数:
223
无标题文档 转为大写//onblur="lw.value = chineseNumber(up.value)"说明鼠标移开焦点出发事件转为小写
分类:
其他好文 时间:
2014-07-18 14:33:52
阅读次数:
316
1.Map1.1 map是一种pair的容器,pair的种类是pair。map采用下标访问一个已存在的key, 会更新value,访问map中不存在的元素时,会增加一个新的键值对。map中的元素按照key进行从小到大排列。map的底层实现是采用二叉树,一般是使用红黑树。#include #inclu...
分类:
编程语言 时间:
2014-07-18 14:30:07
阅读次数:
350
progress标签:从名字上来看,估计大家也能猜到这个标签是什么标签了,没错,他是一个进度条。在HTML5中我们终于可以不用模拟了。复制代码progress属性:value:表示当前进度max:表示总进度注:value和max属性的值必须大于0,value的值小于或等于max属性的值。案例: .....
分类:
Web程序 时间:
2014-07-18 14:28:53
阅读次数:
204
题目——如下代码的执行结果: class Hello{ String title; int value; public Hello(){ title += " World!"; } public Hello(int value){ this.value = value; title = "Hello...
分类:
其他好文 时间:
2014-07-18 14:00:14
阅读次数:
183
class TreeViewLineConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.Culture...
分类:
其他好文 时间:
2014-07-18 13:39:42
阅读次数:
319
1. 用数组元素作函数实参 1 #include 2 using namespace std; 3 4 int max_value(int x, int max) 5 { 6 return max > x ? max : x; 7 } 8 9 int main()10 {11 ...
分类:
编程语言 时间:
2014-07-18 12:24:41
阅读次数:
241
var objs = document.getElementsByTagName("input");
for (var i = 0; i < objs.length; i++) {
if (objs[i].type.toLowerCase() == "checkbox" && objs[i].checked)
alert(objs[i].value);
}...
分类:
Web程序 时间:
2014-07-18 11:22:10
阅读次数:
218
Evaluate the value of an arithmetic expression in Reverse Polish Notation.
Valid operators are +, -, *, /.
Each operand may be an integer or another expression.
Some examples:
["2", "1", ...
分类:
其他好文 时间:
2014-07-18 11:19:56
阅读次数:
210
function is_number(field,div_id)//div_id是显示错误的div的ID{ var patt=new RegExp("^[0-9]{1,2}$");//建立正则表达式对象patt with(field){ if(patt.test(value)==false){//....
分类:
Web程序 时间:
2014-07-18 10:30:53
阅读次数:
224