CKeditor编辑器是FCKeditor的升级版本想对于FCK来说,确实比较好用,加载速度也比较快以下是如果通过JS获取CKeditor编辑器的值,用于表单验证if(CKEDITOR.instances.content.getData()==""){alert("内容不能为空!");return ...
分类:
编程语言 时间:
2014-07-30 20:39:14
阅读次数:
238
$.validator.addMethod("luhm", function(bankno) {
var lastNum=bankno.substr(bankno.length-1,1);
var first15Num=bankno.substr(0,bankno.length-1);
var newArr=new Array();
for(var i...
分类:
其他好文 时间:
2014-07-30 17:58:07
阅读次数:
221
PreparedStatement获取自动生成键使用可以获取自动生成键方法Statement.RETURN_GENERATED_KEYS表示返回生成键PreparedStatementpstmt=conn.prepareStatement(sql,Statement.RETURN_GENERATED_KEYS);//获取生成键的结果集ResultSetrls=pstmt.getGeneratedKeys();getGeneratedKey..
分类:
其他好文 时间:
2014-07-30 17:47:14
阅读次数:
179
#include
#include
#include
using namespace std;
struct node{
int x , y ;
} p[2600];
int q[1200] ;
bool cmp(node a,node b)
{
return a.y < b.y || ( a.y == b.y && a.x < b.x ) ;
}
int main()
{...
分类:
其他好文 时间:
2014-07-30 17:44:44
阅读次数:
219
在大矩形中找一个小矩形
使小矩形包含的*最多
暴力或者DP 水题
暴力:
#include "stdio.h"
#include "string.h"
int main()
{
int n,m,w,i,s,t,j,k,l,ans,sum,x,y;
int map[101][101];
while (scanf("%d",&w)!=EOF)
...
分类:
其他好文 时间:
2014-07-30 17:44:24
阅读次数:
201
很裸的01背包,水题,注意控制精度
#include
#include
#include
#include
#include
const int INF = 1e6;
using namespace std;
int dp[4*INF],cost[5],w[31];
int max(int x,int y)
{
if(x > y)
return x;
...
分类:
其他好文 时间:
2014-07-30 17:26:44
阅读次数:
216
冒泡
$(function () {
$("div li").click(function (e) {
alert("我是li"); return false;
})
$("div ul").click(function (e) { //这个e其实就是even...
分类:
其他好文 时间:
2014-07-30 17:24:14
阅读次数:
170
题目描述:Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra spac...
分类:
其他好文 时间:
2014-07-30 17:18:44
阅读次数:
204
# include
# include
# include
# include
using namespace std;
int max(int a,int b)
{
return a>b?a:b;
}
int main()
{
int T,n,t,k,m,i,hh,min,id,num,x;
int last[1010];//最后一次开始炒饭的时间
int cot[1010];/...
分类:
其他好文 时间:
2014-07-30 14:45:53
阅读次数:
164
/**
* 检测网络是否可用1
* @param act
* @return
*/
public boolean isNetwork(Activity act){
ConnectivityManager manager = (ConnectivityManager) act...
分类:
其他好文 时间:
2014-07-30 14:45:03
阅读次数:
167