Lua中的函数和C++中的函数的含义是一致的,Lua中的函数格式如下:123functionMyFunc(param)--Dosomethingend在调用函数时,也需要将对应的参数放在一对圆括号中,即使调用函数时没有参数,也必须写出一对空括号。对于这个规则只有一种特殊的例外情况:一个函数若只有一个...
分类:
其他好文 时间:
2014-07-24 12:18:35
阅读次数:
290
di = $di; } /** * Runs the application performing all initializations * * @param $options * * @return mixed */ public...
分类:
Web程序 时间:
2014-07-24 10:15:43
阅读次数:
310
/** * Initializes the router * * @param array $options */ protected function initRouter($options = array()) { $config =...
分类:
其他好文 时间:
2014-07-24 10:10:53
阅读次数:
473
public class ZipUtil {
public ZipUtil(){
}
/**
* DeCompress the ZIP to the path
* @param zipFileString name of ZIP
* @param outPathString path to be unZIP
* @throws ...
分类:
移动开发 时间:
2014-07-23 22:31:57
阅读次数:
388
1、int与byte[]之间的转换(类似的byte short,long型) /** * 将int数值转换为占四个字节的byte数组,本方法适用于(低位在前,高位在后)的顺序。 和bytesToInt()配套使用 * @param value * 要...
分类:
其他好文 时间:
2014-07-23 20:35:55
阅读次数:
220
/**
* 返回两个时间段相隔几个月
* @param date1
* @param date2
* @return
* @throws ParseException
* @throws ParseException
*/
public static long getMonth(String startDate, String endDate) throws P...
分类:
其他好文 时间:
2014-07-23 18:07:06
阅读次数:
137
/**
* 判断服务是否后台运行
*
* @param context
* Context
* @param className
* 判断的服务名字
* @return true 在运行 false 不在运行
*/
public static boolean isServiceRun(Context mContext,...
分类:
移动开发 时间:
2014-07-23 13:38:06
阅读次数:
249
方法一:
/**
* 把View绘制到Bitmap上
* @param view 需要绘制的View
* @param width 该View的宽度
* @param height 该View的高度
* @return 返回Bitmap对象
* add by csj 13-11-6
*/
public Bitmap getViewBitmap(View comBitmap, in...
分类:
其他好文 时间:
2014-07-21 23:29:43
阅读次数:
212
public class SignInfo {
public static final String TAG = "SignInfo";
/**
* 获取签名公钥
*
* @param mContext
* @return
*/
protected static String getSignInfo(Context mContext) {
String sign...
分类:
其他好文 时间:
2014-07-21 22:41:07
阅读次数:
233
获取,指定目录的子文件列表,支持递归获取子目录,支持Win32和类Unix系统。#ifndef _FILE_HELPER_H__#define _FILE_HELPER_H__class FileHelper{public: /** @brief 获取指定文件夹内的文件路径列表 @param str...
分类:
编程语言 时间:
2014-07-21 14:03:05
阅读次数:
214