常用的表单验证指令1. 必填项验证某个表单输入是否已填写,只要在输入字段元素上添加HTML5标记required即可: 2. 最小长度验证表单输入的文本长度是否大于某个最小值,在输入字段上使用指令ng-minleng= "{number}": 3. 最大长度验证表单输入的文本长度是否小于或等于某个最...
分类:
其他好文 时间:
2014-10-20 17:07:38
阅读次数:
146
C#中在3.5版本后引入了var变量关键字,称为推断类型。那么Var这个类型什么样的一个类型呢?下面我根据自己查阅的资料和学习心得总结一下:1.Var是一个弱类型关键字。var申明的变量能够根据上下文,代替任何一种变量。(个人感觉有点像Object类型,但其实不一样)2.如何定义var变..
Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a multiple ofkthen left-o...
分类:
其他好文 时间:
2014-10-20 14:46:35
阅读次数:
230
1、统计一下插入的数据总数SELECT COUNT(giftCertificateId) AS number FROM gift_certificate WHERE giftCertificateNo LIKE 'boc%';SELECT giftCertificateId, COUNT(gc.`g...
分类:
数据库 时间:
2014-10-20 13:25:33
阅读次数:
174
一、手工查询得出名次select * ,select count(*)+1 from T2 where T2.[成绩] > T1.[成绩] as 名次 from T1结果:12335二、SQL Server 2005 的排序函数 ROW_NUMBER、RANK、DENSE_RANK1.ROW_NUM...
分类:
数据库 时间:
2014-10-20 13:06:40
阅读次数:
197
题目描述:Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array[2,3,-2,4...
分类:
其他好文 时间:
2014-10-20 08:38:54
阅读次数:
125
常用的表单验证指令1. 必填项验证某个表单输入是否已填写,只要在输入字段元素上添加HTML5标记required即可: 2. 最小长度验证表单输入的文本长度是否大于某个最小值,在输入字段上使用指令ng-minleng= "{number}": 3. 最大长度验证表单输入的文本长度是否小于或等于某个最...
分类:
Web程序 时间:
2014-10-20 00:34:39
阅读次数:
626
Single NumberGiven an array of integers, every element appearstwiceexcept for one. Find that single one.c++版:class Solution {public: int singleNumbe.....
分类:
其他好文 时间:
2014-10-19 23:00:35
阅读次数:
260
Max Points on a LineGivennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.c++版本:/** * Definition for a poi....
分类:
其他好文 时间:
2014-10-19 22:42:21
阅读次数:
225
Number Steps
Time Limit: 1000ms Memory limit: 10000K 有疑问?点这里^_^
题目描述
Starting from point (0,0) on a plane, we have written all non-negative integers 0, 1, 2,... as shown in the...
分类:
其他好文 时间:
2014-10-19 21:29:03
阅读次数:
183