写在前面 在开发中提交表单,并对表单的值进行验证是非常常见的操作,angularjs对表单验证提供了非常好的支持。 demo 表单 服务端 测试 提交后数据 总结 $dirty:表单有填写记录 $valid:字段内容合法的 $invalid:字段内容是非法的 $pristine:表单没有填写记录 ...
分类:
Web程序 时间:
2016-05-15 10:59:07
阅读次数:
163
242. Valid Anagram Given two strings s and t, write a function to determine if t is an anagram of s. For example, s = "anagram", t = "nagaram", return ...
分类:
编程语言 时间:
2016-05-14 18:40:07
阅读次数:
175
1.安装Perl,gcc. 2.如果提示 The path "" is not a valid path to the 3.10.0-229.el7.x86_64 kernel headers.Would you like to change it? [yes] 运行 yum remove kern ...
分类:
系统相关 时间:
2016-05-14 16:55:24
阅读次数:
219
有效的XML: DTD(文档类型定义)介绍 有效(Valid)的XML文档: 首先,XML文档是个格式正规的(Well-formed)XML文档; 其次,需要满足DTD的要求,这样的XML文档称为有效的(Valid)XML文档。 DTD DTD,即文档类型定义——Document Type Defi ...
分类:
其他好文 时间:
2016-05-14 12:48:45
阅读次数:
276
Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, /. Each operand may be an integer or another e ...
分类:
其他好文 时间:
2016-05-13 18:39:51
阅读次数:
128
Given a linked list, remove the nth node from the end of list and return its head. For example, Note:Given n will always be valid.Try to do this in on ...
分类:
编程语言 时间:
2016-05-13 10:20:53
阅读次数:
172
Why is IPAM important for Neutron? ?No VM connectivity without a valid IP assigned ?Duplicate subnets/IPs in shared or routable space are disastrous E ...
分类:
Web程序 时间:
2016-05-13 10:15:59
阅读次数:
204
var isIp = function (){ var regexp = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/; return function(value){ var valid = regexp.test(value); if(!valid){//首先必须 ...
分类:
Web程序 时间:
2016-05-13 09:59:21
阅读次数:
275
ARM 处理器架构 转自:http://www.arm.com/zh/products/processors/instruction-set-architectures/index.php ARM 架构是构建每个 ARM 处理器的基础。ARM 架构随着时间的推移不断发展,其中包含的架构功能可满足不断 ...
分类:
其他好文 时间:
2016-05-13 08:38:30
阅读次数:
186
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 ...
分类:
其他好文 时间:
2016-05-13 07:33:14
阅读次数:
114