项目结构 :github 上源码地址:https://github.com/starzou/front-end-example 点击打开1、form 表单代码[html]view plaincopyBootstrapFormTemplateForm示例NamePasswordIntroGender....
分类:
Web程序 时间:
2014-11-10 09:45:46
阅读次数:
288
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 n...
分类:
其他好文 时间:
2014-11-09 16:41:17
阅读次数:
122
Validate if a given string is numeric.Some examples:"0"=>true" 0.1 "=>true"abc"=>false"1 a"=>false"2e10"=>trueNote:It is intended for the problem stat...
分类:
其他好文 时间:
2014-11-09 08:36:47
阅读次数:
155
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 n...
分类:
其他好文 时间:
2014-11-09 06:19:31
阅读次数:
173
在网上看了好多自定义验证样式,好多都是不是自己想要的!
打开源码,看了一下挺简单的!
将下面的样式添加到页面上就可以实现黑色主题的提醒!
想要什么样式基本都可以自己修改了!很方便
/*验证样式*/
.formError .formErrorContent {
width: 100%;
/*错误提示框颜色*/
background: #000;
position:rela...
分类:
Web程序 时间:
2014-11-07 14:52:00
阅读次数:
275
rman作为oracle备份与恢复工具,为我们提供了强大的功能,其中包括对数据文件的物理和逻辑检测以及备份文件的有效性检测。
首先,来看一下rman对数据文件的检测。我们知道,rman在备份数据时,会将数据读入读缓存,然会将数据从读缓存写入写缓存并最终写入数据库。在从读缓存到写缓存的过程中,rman会进行物理一致性的检测(db_block_checksum未true)和逻辑一致性检测(使用了ch...
分类:
其他好文 时间:
2014-11-07 11:22:01
阅读次数:
151
CakePHP中更新数据的方法包括saveField()和updateAll()两种,其中前者用于保存单个字段,后者用于更新多条记录。 saveField(string $fieldName, string $fieldValue, $validate = false) saveField(...
分类:
Web程序 时间:
2014-11-06 12:57:21
阅读次数:
1367
在项目中个人写的一个常用验证的正则表达式:(仅供参考)//定义两个全局变量var reg;var errorInfo;//输入的数字类型必须是int型,正负整数都可以function validate_integer(text,value){ reg=/^[-\+]?\d+$/; errorInfo...
分类:
其他好文 时间:
2014-11-04 19:16:42
阅读次数:
346
这个是我星期六的时候研究了一天的成果,虽然效率有点低吧,自学能力有点弱,不过自己还是很满意了吧,现在能自己套到程序中并成功运行,达到自己想要的效果首先引用 Jquery Jquery.Vaildate自定义方法,正则验证 jQuery.validator.addMethod("...
分类:
Web程序 时间:
2014-11-04 12:52:16
阅读次数:
342
function validate(){//var Elements = document.all;var Elements = document.getElementsByTagName("*");var msgs;var i;for ( i in Elements ) {if ( Element...
分类:
编程语言 时间:
2014-11-04 12:48:54
阅读次数:
102