转自:http://blog.csdn.net/liaoxiaohua1981/article/details/6759206格式定义:[html]view plaincopycontextConfigLocationcontextConfigLocationValue>作用:该元素用来声明应用范围...
分类:
Web程序 时间:
2014-11-13 18:10:21
阅读次数:
307
require '../common.inc.php';/* * 产品号+年的后2位+月+日+订单数 * @param [Int] $prodcutId 产品号 * @param [Int] $tradeItemid 订单号 * @return [S...
分类:
Web程序 时间:
2014-11-13 18:04:28
阅读次数:
184
/** * @description Mask 弹层 * @function * @name Mask * @param {Object} options 配置项 */var passport = passport || {}passport.page = passport.page || {};/...
分类:
其他好文 时间:
2014-11-13 16:31:54
阅读次数:
188
//exercise 6.1package second;import java.util.Scanner;public class first { /** * @param args */ public static void main(String[] args) {...
分类:
编程语言 时间:
2014-11-13 14:16:42
阅读次数:
291
<?php
//开启session,用来保存验证码
session_start();
/**
*验证码的封装类
*@param$wint验证码图像的宽
*@param$hint验证码图像的高
*@param$cnint验证码的位数
*@return$imgresource返回验证码图像资源
*/
classCheckCode{
//定义属性
private$width;//验证码图像的..
分类:
其他好文 时间:
2014-11-13 07:14:04
阅读次数:
202
/**
*二维数组去重
*@param数组$array
*/
functionarray_unique_fb($array)
{
foreach($arrayas$key=>$v)
{
$str=‘‘;
foreach($vas$key_=>$v_){
$str.=$key_.‘@#$‘.$v_.‘,‘;//键值拼接成以,分割字符串
}
$str=substr($str,0,-1);
$temp[]=$s..
分类:
编程语言 时间:
2014-11-12 18:07:44
阅读次数:
241
原题地址:https://oj.leetcode.com/problems/min-stack/解题思路:开辟两个栈,一个栈是普通的栈,一个栈用来维护最小值的队列。代码:class MinStack: # @param x, an integer def __init__(self): ...
分类:
编程语言 时间:
2014-11-12 13:44:19
阅读次数:
213
/**
* 根据图片的名称获取对应的资源id
* @param resourceName
* @return
*/
public int getDrawResourceID(String resourceName) {
Resources res=getResources();
int picid = res.getIdentifier(resourceName,"dra...
分类:
移动开发 时间:
2014-11-12 10:36:14
阅读次数:
231
package file_op;import java.io.File;public class file_list { static int n =0; /** * @param args */ public static void main(String[] args) { Stri...
分类:
编程语言 时间:
2014-11-11 22:37:48
阅读次数:
289
synchronized的一个简单样例public class TextThread {/** * @param args */public static void main(String[] args) {// TODO 自己主动生成方法存根 TxtThread tt = new TxtThrea...
分类:
编程语言 时间:
2014-11-11 20:51:23
阅读次数:
240