cube目录下有n个cube,可不可以一下子遍历出所有的对象,而不用一个一个的find?find(“Cube1”)
1、foreach(Transform ts in cube) 2、cube.getCompontsInChildren 返回transform的数组
3、GameObject[] g...
分类:
其他好文 时间:
2014-05-26 08:37:05
阅读次数:
276
自定义集合支持使用 foreach循环访问该集合,需要实现 IEnumerable 和
IEnumerator
接口。usingSystem;usingSystem.Collections;publicclassPerson{publicPerson(stringfName,stringlName)...
分类:
其他好文 时间:
2014-05-26 08:25:31
阅读次数:
196
xcode升级导致cocoapods很多奇葩问题
1.pod setup执行后半年没反应
解决办法设置淘宝的镜像
$ gem sources --remove https://rubygems.org/
//等有反应之后再敲入以下命令
$ gem sources -a http://ruby.taobao.org/
检查一下看看
$ gem sources -l*** CURRENT...
分类:
其他好文 时间:
2014-05-26 04:55:46
阅读次数:
236
貌似靠谱(主要centos默认有httpd,是否需要将其remove然后再安装啊,我采用到方法是没有安装,直接用的默认的),大致就是这个样子吧----zzLAMP
is a combination of operating system and open-source software stack....
分类:
其他好文 时间:
2014-05-26 02:43:43
阅读次数:
321
一、安装MySql
1、卸载CentOS自带的MySql
获取root权限先,卸载CentOS自带的MySql
yum remove mysql
2、安装cmake...
分类:
数据库 时间:
2014-05-24 23:48:57
阅读次数:
542
/**
* Created by W.J.Chang on 2014/5/23.
*/
// 判读是否是数组的方法
console.log(Array.isArray(new Array));
console.log(Array.isArray([]));
var arr = [1,2,3];
// 遍历方法
arr.forEach(function (v){
console.log...
分类:
Web程序 时间:
2014-05-24 18:01:08
阅读次数:
305
<html><metacharset="utf-8"><?php //xmldom操作xml文件 $xmlDoc=newDOMDocument();//创建xmldom对象 $xmlDoc->load("data.xml");//加载xml数据 $items=$xmlDoc->documentElement; //得到所有的节点元素 foreach($items->childNodesas$item){ //遍..
分类:
Web程序 时间:
2014-05-24 16:51:51
阅读次数:
292
Quick Referenceinsmodmodprobermmod User-space
utilities that load modules into the running kernels and remove them.#include
module_init(init_function)...
分类:
其他好文 时间:
2014-05-24 12:05:39
阅读次数:
286
private void button1_Click(object sender, EventArgs
e) { IList arrayAnimal = new ArrayList(); arrayAnimal.Add("12");
arrayAnimal.Add("df"); arrayA...
分类:
其他好文 时间:
2014-05-24 09:37:46
阅读次数:
211