摘要: 通过右键单击pom.xml文件选择maven –> add dependency 或者是打开pom.xml文件,选择dependencies –>add 时,搜索不到依赖的jar包,解决方法如下:1、eclipse菜单 window-> show view –> other –> Maven2、在打... 阅读全文
posted @ 2011-12-03 08:42 Alex~ 阅读(27646) 评论(3) 推荐(0) 编辑
摘要: Linux 某个目录下的文件按大小排序 1. df -lh 2. du -s /usr/* | sort -rn 这是按字节排序 3. du -sh /usr/* | sort -rn 这是按兆(M)来排序 4.选出排在前面的10个 du -s /usr/* | sort -rn | head 5.选出排在后面的10个 du -s /usr/* | sort -rn | tail 说明:/usr/*也可以改成你想到达的任何目录 如/usr/local/zhou/resin 这个目录就可以写成 /usr/local/zhou/resin/*find ./ -size +100000k -prin 阅读全文
posted @ 2011-12-03 08:32 Alex~ 阅读(148) 评论(0) 推荐(0) 编辑
摘要: //第1种写法 function Circle(r) { this.r = r; } Circle.PI = 3.14159; Circle.prototype.area = function() { return Circle.PI * this.r * this.r; } var c = new Circle(1.0); alert(c.area()); //第2种写法 var Circle = function() { var obj = new Object(); obj.PI = 3.14159; obj.area = function( r ) { return this.PI * 阅读全文
posted @ 2011-12-03 08:24 Alex~ 阅读(128) 评论(0) 推荐(0) 编辑