码迷,mamicode.com
首页 >  
搜索关键字:param    ( 11285个结果
字符串相似度算法,AS3实现,用于判断聊天广告
/** * 计算把source经过几个步骤可以转变到target的值 * @param source * @param target * @return * */ pu...
分类:其他好文   时间:2014-09-29 16:35:01    阅读次数:198
hello.c内核模块编译 -- linux内核
Linux开发模块,在本机上看调试信息的方法走通了。当前版本2.6.32-32-generic uname –r 可以查询 这里取module_param()作为例子。 该宏被定义在include/linux/moduleparam.h文件中,具体定义如下: #define module_param(name, type, perm) module_param_named(name, name, type, perm) 其中使用了 3个参数:要传递的参数变量名, 变量...
分类:系统相关   时间:2014-09-29 14:03:20    阅读次数:274
将某个日期字符串转换为java.sql.Date的类型
import java.text.ParseException;import java.text.SimpleDateFormat;public class date { /** * @param args * @throws ParseException */ public static voi....
分类:数据库   时间:2014-09-29 11:52:40    阅读次数:212
导出Excel格式数据
/** * 导出规则统计数据 excel格式 * @param bill * @return */ public String exportExamsignupExamnoExcel ( String tablename ) { try ...
分类:其他好文   时间:2014-09-28 19:15:24    阅读次数:161
PHP常用的基本文件和目录操作总结
4、复制目录 1: /* 2: *复制目录 3: *@param string $dirSrc 原目录名 4: *@param string $dirTo 目标目录名 5: */ 6: function copyDir($dirSrc,$dirTo) 7: { 8: if(is_file($dirTo)) 9: { 10: echo '目标目录不能创建';/*目标不是一个*/ 11: ...
分类:Web程序   时间:2014-09-28 15:40:53    阅读次数:259
PHP 远端图片下载
<?php /** *php实现下载远程图片到本地 *@param $url string 远程文件地址 *@param $filename string 保存后的文件名(为空时则为随机生成的文件名,否则为原文件名) *@param $fileType ...
分类:Web程序   时间:2014-09-28 14:16:22    阅读次数:190
PHP 循环检测并生成目录 chkDir($dirname,$split='/')
自己写的,在MVC框架里面可以直接使用! /** * @author F.Z.B * @description 循环检测目录 * * @param $dir * @param string $split * * @return bool */ function chkDir($dir, $split = '/') { preg_match_all...
分类:Web程序   时间:2014-09-27 22:29:50    阅读次数:199
插入排序
java源码如下: /** ?*? ?*?@author?ruikaih ?* ?*/ public?class?InsertSortTest?{ /** ?*?@param?args ?*/ public?static?void?insertionSort(Comparable[]?data)?{ for?(int?ind...
分类:其他好文   时间:2014-09-27 21:49:00    阅读次数:294
Android下获取状态栏的高度
/** * * @param activity * @return > 0 success; <= 0 fail */ public static int getStatusHeight(Activity activity){ int statusHeight = 0; Rect localRect = new Rect(); activity.getWindow().getDecorVie...
分类:移动开发   时间:2014-09-27 18:04:30    阅读次数:230
javascript 将 ThinkPHP 分页自动转换为 bootstrap 分页
#写的一个通用的,将thinkphp生成的分页HTML,自动转换为 bootstrap 分页: /** * @author default7#zbphp.com * @description 将ThinkPHP的分页转换为 bootstrap分页 * @param selector */function initPagination(selector) { selector = selec...
分类:编程语言   时间:2014-09-27 15:29:50    阅读次数:213
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!