进行android的开发,必须深入了解Activity的生命周期。而对这个讲述最权威、最好的莫过于google的开发文档了。本文的讲述主要是对http://developer.android.com/training/basics/activity-lifecycle/index.html 的翻译,...
分类:
移动开发 时间:
2014-11-29 10:13:53
阅读次数:
176
Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Update (2014-11-02):The s...
分类:
其他好文 时间:
2014-11-29 08:54:17
阅读次数:
171
1.indexOf和lastIndexOf方法:因为IE7在数组对象上使用indexOf会报错,所以需要重写一个兼容性的。Array.prototype.lastIndexOf(item,index){ var n = this.length,i = (index==null||index>n-1....
分类:
编程语言 时间:
2014-11-28 18:08:52
阅读次数:
151
BufferAttribute类用来存储于bufferGeometry相关联的属性数据,更多细节可以参考官方的样例http://threejs.org/
这个类用来存储内置属性例如顶点位置,法线,颜色,等,但也可以用于存储bufferGeometry对象的自定义属性.
BufferAttribute对象的功能函数采用定义构造的函数原型对象来实现.
TODO:增加一个基类setAttr(index,item,itemSize)根据跟多不同的属性相长度设置属性...
分类:
Web程序 时间:
2014-11-28 16:23:52
阅读次数:
228
web.xml配置如下: Test test.Test Test /* index.htmltest.java如下:package test; import java.io.IOException; import java.io.PrintWriter; ...
分类:
Web程序 时间:
2014-11-28 16:03:09
阅读次数:
181
public static void main(String[] args) { String url ="http://127.0.0.1:8080/teste/welcome/index.do?systemId=179#"; String ur=url.substring(0, url.inde...
分类:
Web程序 时间:
2014-11-28 15:49:35
阅读次数:
136
在表设计中设定主键(复合主键),前提:表中已有300多万条数据Error:このインデックス操作に必要なメモリは DOP あたり 2048 KB です。必要なメモリの総計 8264 KB (4 の DOP の場合) は、サーバーの詳細構成オプション "index create memory (KB)"...
分类:
数据库 时间:
2014-11-28 14:24:10
阅读次数:
205
ThinkPHPURL访问:http://localhost/think/index.php/Home/login/func/[name/syt/password/123/]http://localhost/think/index.php/Home/login/func?id=10007&name=...
分类:
Web程序 时间:
2014-11-28 14:00:55
阅读次数:
148
php中没有一个和java,c#一样的字符串分割成数组的方法,至少我没有找到.所以我自己写了一个分割字符串为字符数组的方法:/***我的字符串切分的函数*/functionmy_split($str,$seperator){ $str_array=array(); $token=strtok($str,$seperator); $index=0; while($token!==false){ ..
分类:
Web程序 时间:
2014-11-28 06:30:30
阅读次数:
145
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu...
分类:
其他好文 时间:
2014-11-28 06:17:20
阅读次数:
252