文章列表
public class PrintFiles {
public static void main(String[] args) {
File file = new File("c://TDDownload");
ChildFile(file,0);
}
public static void ChildFile(File file,int count){
String tempStr = "";
for(int i=0; i< count; i++){
tempStr +=" &q ...
- 2009-08-12 17:01
- 浏览 1015
- 评论(0)
js自定义类和对象及继承
1.工厂方式
<script type="text/javascript">
function createObject(name){
var p = new Object();
p.name=name;
p.say = function(){alert(p.name+'ff');}
return p;
}
var p1 = createObject("p1");
var p2 = createObject("p2");
a ...