var map = {};// 赋值var key = "key1";var value = "value1";map[key] = value;// 取值alert(map[key]);if("key1" in map) { //判断是否存在 alert("OK");}// 删除delete...
分类:
Web程序 时间:
2014-07-09 18:15:07
阅读次数:
176
Write code to partition a linked list around a value x, such that all nodes less than x come before all nodes greater than or equal to x.Use two addit...
分类:
其他好文 时间:
2014-07-09 17:44:36
阅读次数:
159
一·、JS初学者易混淆的问题;innerHTML,innerText,value(他们和JQ的区别:JS→value,JQ→value())1、getElementById("a").innerHTML=""; getElementById("a").innerText=""; 这两个的区别直接上....
分类:
编程语言 时间:
2014-07-09 17:31:48
阅读次数:
195
遇到一个mysql 数据库显示乱码的问题。 问题:(1) 在DOS界面下 select 某个表中的数值,中文全部显示乱码。(2) 在dos 下 insert 语句中插入中文 出现错误。类似Incorrect string value: '\xD6\xD0\xB9\xFA' for column '....
分类:
数据库 时间:
2014-07-09 17:10:51
阅读次数:
220
纯粹记录下几种用法:jquerygrep()筛选遍历数组$().ready( function(){ var array = [1,2,3,4,5,6,7,8,9]; var filterarray = $.grep(array,function(value){ ...
分类:
Web程序 时间:
2014-07-09 16:45:07
阅读次数:
231
1、常见的特殊符号的应用: IE6: _selector{property:value;} selector{property:value;property:value !important;} //IE6 不支持同一选择符中的 !important IE7: +selector{property:...
分类:
Web程序 时间:
2014-07-09 16:42:13
阅读次数:
210
Introduction to RedisRedis is an open source, BSD licensed, advanced key-value store. It is often referred to as a data structure server since keys ca...
分类:
其他好文 时间:
2014-07-09 15:35:56
阅读次数:
211
参考资料:红黑树我的实现 1 #define BLACK 1 2 #define RED 0 3 4 struct node 5 { 6 int value; 7 node *left, *right, *parent; 8 bool color; 9 ...
分类:
其他好文 时间:
2014-07-09 13:37:56
阅读次数:
144
There areNchildren standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following requi...
分类:
其他好文 时间:
2014-07-09 13:31:26
阅读次数:
239
var value1:String = "1.1111"var value2:Double = String.bridgeToObjectiveC(value1)().doubleValue
分类:
其他好文 时间:
2014-07-09 13:30:54
阅读次数:
164