1.认识数组数组就是某类数据的集合,数据类型可以是整型、字符串、甚至是对象Javascript不支持多维数组,但是因为数组里面可以包含对象(数组也是一个对象),所以数组可以通过相互嵌套实现类似多维数组的功能1.1 定义数组声明有10个元素的数组var a = new Array(10);此时为a已经...
分类:
编程语言 时间:
2014-06-27 15:44:45
阅读次数:
203
array( 'method' => 'POST', 'header' => $header, 'content' => $content ) ); $context = stream_...
分类:
Web程序 时间:
2014-06-27 14:40:35
阅读次数:
225
function showLocalTime(OID) { window.setTimeout(function(){ var today = new Date(), arr = new Array('日', '一', '二', '三', '四', '五...
分类:
编程语言 时间:
2014-06-27 14:17:42
阅读次数:
368
1.php连接mysql 存储字段含有'/'等字符,json_encode()后,'/'会变为\/,这是需要一个函数:$array=str_replace("\\/", "/", json_encode($arr));,将‘\/’替换为'/'2.去除string中html标签,strip_tags(...
分类:
Web程序 时间:
2014-06-27 13:02:23
阅读次数:
304
Given an array of integers, find two numbers such that they add up to a specific target number.
分类:
其他好文 时间:
2014-06-27 12:59:50
阅读次数:
176
Given an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, wh...
分类:
其他好文 时间:
2014-06-27 12:55:53
阅读次数:
235
Given an unsorted integer array, find the first missing positive integer.
分类:
其他好文 时间:
2014-06-27 12:39:02
阅读次数:
185
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:
其他好文 时间:
2014-06-27 12:30:39
阅读次数:
204
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
分类:
其他好文 时间:
2014-06-27 12:30:03
阅读次数:
200
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of ...
分类:
其他好文 时间:
2014-06-27 12:27:28
阅读次数:
169