1、获取选中的值:获取一组radio被选中项的值: var item =
$("input[@name=items]:checked").val();获取select被选中项的文本: var item =
$("select[@name=items] option[@selected]").tex....
分类:
Web程序 时间:
2014-05-01 13:31:03
阅读次数:
482
AnimatorStateInfoNamespace:
UnityEngineDescriptionInformation about the current or next
state.AnimatorStateInfo.nameHashvarnameHash: int;DescriptionNa...
分类:
其他好文 时间:
2014-05-01 13:29:12
阅读次数:
592
using System;using System.Collections;using
System.Configuration;using System.Data;using System.Linq;using System.Web;using
System.Web.Security;using ...
分类:
其他好文 时间:
2014-05-01 13:25:21
阅读次数:
380
关于使用request.getParameter()得到中文乱码的问题,在网上查找了一天终于找到了一个解决方案,是一个比较笨的方法,要在每个使用request.getParameter()的地方添加如下代码,代码如下:1
String name=request.getParameter("nam.....
分类:
Web程序 时间:
2014-05-01 12:46:19
阅读次数:
399
解题思路:
求至少收到一份OFFER的最大概率,为了简化问题,求一份OFFER也没有收到的最小概率,然后1减去它就可以了。采用01背包,装入一份OFFER也没收到总概率的最小值,那么1减去它就是收到至少一份OFFER的最大概率。注意:dp[最大容量] 要有值,初始化时,而且本题dp数组初始化值为1
代码:
#include
#include
#include
using name...
分类:
其他好文 时间:
2014-04-29 13:21:22
阅读次数:
321
会话清除与过期
程序主动清除session数据
设置会话失效:session.invalidate()
移除会话中一个属性:
语法:public void removeAttribute(String name);
服务器主动清除长时间没有再次发出请求的session
设置会话过期时间
方法一:public void setMaxInactiveInterval(int interv...
分类:
编程语言 时间:
2014-04-28 10:36:41
阅读次数:
322
为了避免目标端nrpe进程监控多个接口而造成的安全漏洞。有必要固定服务端的地址,对nrpe.cfg配置中,有下列一行介绍
#SERVER ADDRESS
# Address that nrpe should bind to in case there are more than one interface
# and you do not want nrpe to bind on all in...
分类:
其他好文 时间:
2014-04-27 22:36:17
阅读次数:
454
头文件:
#import
#import
@interface DirectionRouteUtils : NSObject
{
MKDirections *mDirections;
CLGeocoder *mGeocoder;
}
+ (instancetype)sharedInstance;
// 获取导航路线
- (void)findDirectionsFro...
分类:
移动开发 时间:
2014-04-27 21:35:59
阅读次数:
558
/*************************************************************************
File Name: bitree.cpp
Author: yubo
Mail: yuzibode@126.com
Created Time: 2014年04月27日 星期日 23时45分04秒
学...
分类:
其他好文 时间:
2014-04-27 21:27:00
阅读次数:
373
1.存储过程
(1)存储过程的创建及修改
语法:
CREATE [OR REPLACE] PROCEDURE procedure_name
[(parameter_name [IN | OUT | IN OUT] datatype [{(:= | DEFAULT ) defaultvalue}] [, ...])]
{IS | AS}
BEGIN
procedure_...
分类:
数据库 时间:
2014-04-27 21:13:59
阅读次数:
341