用shell写了个递归遍历目录的脚本,本脚本实现递归遍历指定目录,打印目录下的文件名(全路径)。#!/bin/sh function scandir() { 
local cur_dir parent_dir workdir workdir=$1 cd ${workdir} if [ ${w...
                            
                            
                                分类:
其他好文   时间:
2014-07-22 23:14:53   
                                阅读次数:
563
                             
                         
                    
                        
                            
                            
                                首先,看一段很有意思的代码: 匿名 
这个结果是什么?很多时候在看第三方js插件时,会看的(function(){})();这种样子的代码。.net程序猿很费解。这种写法是非常好的方式。javascript是一种上手简单,往后学就会觉得比较难,再往后又会觉得简单的语言。(看的资料上...
                            
                            
                                分类:
编程语言   时间:
2014-07-22 23:10:33   
                                阅读次数:
500
                             
                         
                    
                        
                            
                            
                                实现公式:{{orderBy_expression | 
orderBy:expression:reverse}}Examplevar app=angular.module("myApp",[]); 
app.controller("Ctrl",function($scope){ $scope.fri....
                            
                            
                                分类:
Web程序   时间:
2014-07-22 23:07:52   
                                阅读次数:
960
                             
                         
                    
                        
                            
                            
                                cocos2d-x 3.0 + cocosbuilder 
3.0使用中发现每个按钮回调都要写一行对应的回调如:1 local function onMenuItemAClicked()2 ...3 end4 5 
TestMenusLayer["onMenuItemAClicked"] = o...
                            
                            
                                分类:
其他好文   时间:
2014-07-22 23:06:54   
                                阅读次数:
321
                             
                         
                    
                        
                            
                            
                                $.ajax({type:"get", url:"http://", 
data:"name="+userid+"&password="+password,async:true, 
error:function(request){alert("Connectionerror"); }, success:...
                            
                            
                                分类:
Web程序   时间:
2014-07-22 23:06:54   
                                阅读次数:
373
                             
                         
                    
                        
                            
                            
                                1、setTimeout() setTimeout() 
方法用于在指定的毫秒数后调用函数或计算表达式。具体的格式是这样的setTimeout(code,millisec) 
其中code是要执行的代码或者function,而millisec是间隔的时间(毫秒数) function empt...
                            
                            
                                分类:
其他好文   时间:
2014-07-22 23:06:14   
                                阅读次数:
243
                             
                         
                    
                        
                            
                            
                                标签:例如注意, 
此时button的点击事件不会调用jquery中的show(),如果没在js文件中直接书写function show(){}的话,会报错, 
提示找不到show()但是在jquery中是可以调用jquery中的 function show() {}的,即可以调用上面的红色书写的sho...
                            
                            
                                分类:
编程语言   时间:
2014-05-01 16:13:24   
                                阅读次数:
347
                             
                         
                    
                        
                            
                            
                                Given two binary trees, write a function to 
check if they are equal or not.Two binary trees are considered equal if they are 
structurally identical an...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 16:06:46   
                                阅读次数:
427
                             
                         
                    
                        
                            
                            
                                function trimStr(str){ return 
str.replace(/(^\s*)|(\s*$)/g,"");}用的时候就是直接 var 变量=trimStr(需要去空格的字符串);
                            
                            
                                分类:
Web程序   时间:
2014-05-01 15:47:26   
                                阅读次数:
347
                             
                         
                    
                        
                            
                            
                                function SearchCondition(){ this.startTime = ""; 
this.endTime = ""; this.targetInfo = ""; this.logType = ""; this.m...
                            
                            
                                分类:
Web程序   时间:
2014-05-01 15:36:22   
                                阅读次数:
414