示例代码:angular.module("myTest",[])
.directive(‘multipleIdentityNo‘,[function(){
return{
require:"ngModel",
link:function(scope,element,attr,ngModel){
if(ngModel){
varemailsRegexp=/^/d{17}[X0-9]{1}$/;//校验身-份-s-证号码
}
varcustomValidator=function(value..
分类:
其他好文 时间:
2015-04-09 17:45:18
阅读次数:
196
export `=' not a valid identifier的一般原因
原因就是你修改的 /etc/profile 文件里
你加过空格
我的代码如下:
export JAVA_HOME = /usr/java/jdk1.7.0_75
export PATH = $JAVA_HOME/bin:$PATH
export CLASSPATH = .:$JAVA_HO...
分类:
系统相关 时间:
2015-04-09 15:36:35
阅读次数:
3711
题目:Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given"25525511135",return["25...
分类:
其他好文 时间:
2015-04-09 13:30:30
阅读次数:
169
题目链接:Restore IP Addresses
Given a string containing only digits, restore it by returning all possible valid IP address combinations.
For example:
Given "25525511135",
return ["255.255.11.135", "25...
分类:
其他好文 时间:
2015-04-09 11:57:09
阅读次数:
191
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example,"A man, a plan, a canal: Pan...
分类:
其他好文 时间:
2015-04-09 00:58:05
阅读次数:
128
在真机上测试数独游戏时发现,快速点击屏幕时,游戏偶尔出现挂死的情况,Log如下04-08 15:35:00.838 7317-7356/org.elvalad.sudoku D/OpenGLRenderer﹕ Enabling debug mode 004-08 15:35:23.036 ...
分类:
移动开发 时间:
2015-04-09 00:42:45
阅读次数:
207
Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ...
分类:
其他好文 时间:
2015-04-08 23:19:09
阅读次数:
230
Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word.Return all such possible sentences.For example, given
s = “catsanddo...
分类:
其他好文 时间:
2015-04-08 16:25:24
阅读次数:
164
Valid NumberValidate 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 ...
分类:
编程语言 时间:
2015-04-07 22:58:36
阅读次数:
248
LeetCode #Valid Palindrome#
我的Python解答:
"""
Programmer : EOF
e-mail : jasonleaster@gmail.com
Date : 2015.04.07
File : vp.py
"""
import string
...
分类:
其他好文 时间:
2015-04-07 17:49:59
阅读次数:
99