package liupeng;
import java.io.File;
import org.json.JSONException;
import org.json.JSONObject;
public class Test {
/**
* 描述:二维码的生成
* @author liupeng
* @param args
* @throws JSONException
...
分类:
其他好文 时间:
2014-07-30 20:55:24
阅读次数:
234
/**
?*?@param?args
?*/
public?static?void?main(String[]?args)?{
char[]?raw?=?"12345".toCharArray();
perm(raw,?4);
// System.out.println("===========================");
// Syst...
分类:
其他好文 时间:
2014-07-30 15:07:14
阅读次数:
182
/**
* 检测网络是否可用1
* @param act
* @return
*/
public boolean isNetwork(Activity act){
ConnectivityManager manager = (ConnectivityManager) act...
分类:
其他好文 时间:
2014-07-30 14:45:03
阅读次数:
167
格式定义:[html] view plaincopycontextConfigLocationcontextConfigLocationValue>作用:该元素用来声明应用范围(整个WEB项目)内的上下文初始化参数。param-name 设定上下文的参数名称。必须是唯一名称param-value 设...
分类:
Web程序 时间:
2014-07-30 11:50:13
阅读次数:
292
call_user_func_array (callable $callback, array $param_arr)
参数1: 调用一个回调函数,
参数2: 数组参数是回调函数的参数.
call_user_func(callable $callback, $mixed $parameter, $mixed $...)
参数1:调用的回调函数
参数2-n:回调函数的参数.
...
分类:
Web程序 时间:
2014-07-29 22:10:02
阅读次数:
270
描述:log(n)代码: 1 class Solution: 2 # @param x, an integer 3 # @return an integer 4 def getVal(self, begin, end, x): 5 if end == begi...
分类:
其他好文 时间:
2014-07-29 21:26:42
阅读次数:
263
添加规则$.extend($.fn.validatebox.defaults.rules, { requireRadio: { validator: function(value, param){ var input = $(...
分类:
其他好文 时间:
2014-07-29 21:09:02
阅读次数:
943
1 package stu; 2 3 public class TestStr { 4 /** 5 * @param args 6 */ 7 public static void main(String[] args) { 8 // 虚拟机是将...
分类:
编程语言 时间:
2014-07-29 21:03:52
阅读次数:
199
android客户端实现FTP文件(包括图片)上传应该没什么难度。写下来就了为了记录一下,望能帮到新手。需要用到 commons-net-3.0.1.jar,后面附上jar包。直接上代码:/** * 通过ftp上传文件 * @param url ftp服务器地址 如: 192.168.1.110 *...
分类:
移动开发 时间:
2014-07-29 20:53:42
阅读次数:
255
#define ColorWithString(string) [MPUniversal colorWithString:string]/*** 转换字符串为UIColor** @param string 字符串类型:ffffff六位,ffffffff八位,#ffffff,#ffffffff; 字符...
分类:
其他好文 时间:
2014-07-29 17:02:32
阅读次数:
241