主要分几部分jquery.validate 基本用法jquery.validate API说明jquery.validate 自定义jquery.validate 常见类型的验证代码下载地址jquery.validate插件的文档地址http://docs.jquery.com/Plugins/Va...
分类:
Web程序 时间:
2014-07-11 22:53:20
阅读次数:
206
一导入js库二、默认校验规则(1)required:true 必输字段(2)remote:"check.php"使用ajax方法调用check.php验证输入值(3)email:true 必须输入正确格式的电子邮件(4)url:true 必须输入正确格式的网址(5)date:true 必须输入正确格...
分类:
Web程序 时间:
2014-07-06 14:04:28
阅读次数:
291
判断一颗树是不是二分查找树,非常经典基础的一个算法。我很久之前第一次做的时候,是先求出来了树的前序遍历的结果,然后判断这个数组排序后是否和排序前相同,还要判断重复虾米的,很纠结的一种做法。后来思考了一下怎么用递归的思路做,觉得应该根据定义返回两个子树的最大值和最小值,写了一会代码,发现好麻烦,不太对...
分类:
其他好文 时间:
2014-07-06 13:14:30
阅读次数:
178
Given a binary tree, determine if it is a valid binary search tree (BST).
分类:
其他好文 时间:
2014-07-03 19:36:49
阅读次数:
196
最近做项目,需要用到 jQuery.validate.js插件,于是记录一下工作中的一些经验,以便日后学习。
【例子如下】
1.前台页面
用户名:-->
密 码:
2.Javascript
//添加自定义验证
jQuery.validator.addMethod("checkPWD",...
分类:
Web程序 时间:
2014-07-02 06:58:42
阅读次数:
249
https://oj.leetcode.com/problems/validate-binary-search-tree/1.中序遍历是否有序/** * Definition for binary tree * public class TreeNode { * int val; * ...
分类:
编程语言 时间:
2014-07-01 12:20:06
阅读次数:
173
1、使用?通配符public User validate(String userName, String password) { String hql = "from User u where u.userName = ? and u.password = ?"; Use...
分类:
系统相关 时间:
2014-06-27 17:51:35
阅读次数:
395
主要分几部分jquery.validate 基本用法jquery.validate API说明jquery.validate 自定义jquery.validate 常见类型的验证代码下载地址jquery.validate插件的文档地址http://docs.jquery.com/Plugins/Va...
分类:
Web程序 时间:
2014-06-27 17:32:51
阅读次数:
296
我们开发的是Windows 8.1 app。
在打包上传Windows Store前先做以下步骤:
(1)在交由Store审核之前,先在本地进行一下validate,这样会增加通过的机会。要用到Windows App Certification Kit version 3.3,由于我们使用的是Visual Studio,我们在用VS打包(Creating an app package)时就已经运行了Windows App Certification Kit。也就是说可以掠过这一步。
(2)Creating ...
分类:
移动开发 时间:
2014-06-27 09:35:57
阅读次数:
273
Given a binary tree, determine if it is a valid binary search tree (BST).
Assume a BST is defined as follows:
The left subtree of a node contains only nodes with keys less than the node's key....
分类:
其他好文 时间:
2014-06-27 09:15:12
阅读次数:
196