在上一篇中体验了Knockout.Validation的基本验证,本篇体验自定义验证和异步验证。 自定义验证规则 ko.validation有一个rules属性,专门用来存放验证规则,它是一个键值对集合类型,key就是自定义验证规则的名称,value是一个json对象。@{ ViewBag.Titl...
分类:
Web程序 时间:
2014-11-02 13:51:55
阅读次数:
309
Valid SudokuDetermine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are...
分类:
其他好文 时间:
2014-11-01 20:31:15
阅读次数:
284
DescriptionThere is a special number sequence which has n+1 integers. For each number in sequence, we have two rules:● ai∈ [0,n]● ai≠ aj( i ≠ j )For s...
分类:
其他好文 时间:
2014-11-01 17:39:38
阅读次数:
162
Validation control with a single validation rule is easy, but what if we need to validate a control using different validation rules. This article tel...
分类:
数据库 时间:
2014-11-01 00:53:54
阅读次数:
474
Curling 2.0DescriptionOn Planet MM-21, after their Olympic games this year, curling is getting popular. But the rules are somewhat different from ours...
分类:
Web程序 时间:
2014-10-30 20:47:35
阅读次数:
355
一般zabbix服务器跟客户端部署好之后,都是通过建主机,然后添加主机到主机组这样的一个过程如果主机过多的话这样手动添加就比较繁琐了。今天介绍一下zabbix的自动发现功能1、配置自动发现之前服务器端需要修改以下配置[root@lw-02~]#vim/usr/local/zabbix/etc/zabbix_server.c..
分类:
其他好文 时间:
2014-10-30 19:27:23
阅读次数:
265
问题描述:
Determine if a Sudoku is valid, according to:
Sudoku Puzzles - The Rules.
The Sudoku board could be partially filled, where empty cells are filled with the character
'.'.
A partially...
分类:
其他好文 时间:
2014-10-30 09:35:00
阅读次数:
148
大部分在网上可以找到的文档都是在RHEL5或者OEL5中设置udev,udev对于Linux而言最大的作用是防止操作系统重新启动以后,作为ASM磁盘使用的盘符发生变化。比如说Tim Hall的文章:UDEV SCSI Rules Configuration for ASM in Oracle Lin...
分类:
数据库 时间:
2014-10-29 18:34:31
阅读次数:
252
在《建立apk定时自动打包系统第一篇——Ant多渠道打包并指定打包目录和打包日期》这篇文章中介绍多渠道打包的流程。很多时候我们需要将打包好的apk上传到ftp中,这时候我可以修改custom_rules.xml这个文件就可以实现这个需求了。1、下载 common-net-3.3.jar 并将其放在a...
分类:
Web程序 时间:
2014-10-29 16:51:24
阅读次数:
220
1、需引入的js 2、异步验证 //注意 data传值时使用 userName:$("#userName").val() 后台是获取不到值的!!!!jQuery("#form1").validate({ rules: { "user.userName": { ...
分类:
Web程序 时间:
2014-10-28 19:49:09
阅读次数:
253