皮卡皮卡皮 皮卡皮卡皮
4年前
javaScript 数组常用的几个方法
数组的方法总结1.数组转换字符串1.toString()2.toLocaleString()3.join()jsconstarr1,5,6,9,3,2,4,6console.log('toString'arr.toString())//toString1,5,6,9,3,2,4,6console.log('toLocaleSt
Wesley13 Wesley13
3年前
java【自己实现ArrayList】
ArrayList集合的底层使用数组实现的数组的特点是:读取快;插入删除慢链表的特点相反:读取慢,因为需要内存不是连续的,需要找到头节点,顺序遍历;但是插入删除会很快packagecom.bjsxt.collection;importjava.util.ArrayList
Stella981 Stella981
3年前
PHP用proc_open新建子进程使用管道通信非阻塞执行PHP脚本
PHP用proc\_open新建子进程使用管道通信非阻塞执行PHP脚本.脚本结束时register\_shutdown\_function回调函数访问管道获取子进程输出的数据.例子1(popen):<?phpfunctionfoo(){echodate('YmdH:i:s')."\n";
Wesley13 Wesley13
3年前
JDK 的这3个bug,你发现了吗?
!(https://oscimg.oschina.net/oscnet/1de097fbb6d04eee9bf5905adb265b6d.jpg)作者:孤独的探索号来源:my.oschina.net/tommylemon/blog/29671871.Annotation引用非空enum数组返回空数组首
Stella981 Stella981
3年前
Cocos Creator中使用事件中心
exportclassEventCenter{/监听数组/privatelisteners{};/注册事件@paramname事件名称@paramcallback回调函数
Stella981 Stella981
3年前
JavaScript 常用数组函数方法专题
1、由字符串生成数组split() 分割字符串,并将分割的部分作为一个元素保存在一个新建的数组中。varstr1"thisisanemampletousingthemethodofarray.";varstr2str1.split("");//以空格作为分割条件
Wesley13 Wesley13
3年前
PHP PDO_MYSQL 链式操作 非链式操作类
<?php/vim:setexpandtabtabstop4shiftwidth4://///|PHPversion5
Stella981 Stella981
3年前
Linux 为 PHP 添加 redis 拓展
多版本的php,为其中一个版本安装redis拓展,当前使用的环境为wdlinux这个环境有个坑【最后讲】全部命令wgethttp://pecl.php.net/get/redis4.1.1.tgztarzxvfredis4.1.1.tgzcdredis4.1.1
Stella981 Stella981
3年前
Fastjson API Stream使用说明
FastjsonAPIStreamFastjson当需要处理超大JSON文本时,需要StreamAPI,在fastjson1.1.32版本中开始提供StreamAPI。如何序列化超大JSON数组序列化如果你的JSON格式是一个巨大的JSON数组,有很多元素,
Wesley13 Wesley13
3年前
C语言传递二维数组
方法一, 形参给出第二维的长度。例如:include<stdio.hvoidfunc(intn,charstr5){inti;for(i0;i<n;i)printf("/nstr%d%s/n",i,stri);