码迷,mamicode.com
首页 >  
搜索关键字:match    ( 5193个结果)
This application's application-identifier entitlement does not match that of the installed application. These values must match for an upgrade to be allowed.
运行真机报错This application's application-identifier entitlement does not match that of the installed application. These values must match for an upgrade t...
分类:移动开发   时间:2016-01-14 18:52:05    阅读次数:354
JS限制文本框输入金额,保留2位小数
$("input[name='money']").live("keyup paste",function(){ var reg = $(this).val().match(/\d+\.?\d{0,2}/); var txt = ''; if (reg...
分类:Web程序   时间:2016-01-14 12:13:50    阅读次数:326
Spinner的基本使用
一个下拉列表的实现,这里记录下,下拉列表是如何实现的:(1)布局:<Spinner android:id="@+id/sp_xinjian" android:layout_width="match_parent" android:layout_height="wrap_content"/>(2)Item:<?xmlversion="1.0"encoding="utf-8"?> <LinearLayoutxmln..
分类:其他好文   时间:2016-01-13 20:13:47    阅读次数:183
在项目里交叉使用Swift和OC【转】
Swift and Objective-C in the Same Project在项目里交叉使用Swift和OCSwift与OC的兼容性使得你可以在项目里使用Swift+OC的方式编写应用程序,称为混合+匹配(mix and match),用这种方式可以一边使用享受新语言的快速特性,一边无缝的接合...
分类:编程语言   时间:2016-01-13 10:43:22    阅读次数:165
javascript删除所有cookie实例代码
javascript删除所有cookie实例代码:一般情况下都是删除指定的cookie,当然也可以一次性删除所有的cookie,下面就是一段能够实现此功能的代码。代码如下:function clearCookie(){ var keys=document.cookie.match(/[^ =;].....
分类:编程语言   时间:2016-01-12 21:15:28    阅读次数:194
BZOJ1264: [AHOI2006]基因匹配Match
题目:http://www.lydsy.com/JudgeOnline/problem.php?id=1264因为每个字符至多出现5次,在A中记录下来。然后在B中扫一遍,因为a[i]=b[j]时f[i]++,所以维护一个树状数组记录最大值就可以了。注意转移的顺序#include#include#in...
分类:其他好文   时间:2016-01-11 23:34:50    阅读次数:300
VS 2012 No exports were found that match the constraint 解决办法
VS 2012 No exports were found that match the constraint 解决办法删除C:\Users\你的用户名\AppData\Local\Microsoft\VisualStudio\11.0这里面的全部文件文章出处:http://blog.luoboto...
分类:其他好文   时间:2016-01-11 22:08:29    阅读次数:128
IndentationError: unindent does not match any outer indentation level
先上一个有用的连接:http://www.crifan.com/python_syntax_error_indentationerror/comment-page-1/ IDE用的Sublime Text 2,绝大多数时候自动对齐没有问题,但是把一段代码剪切换位置后始终报错Indentatio...
分类:其他好文   时间:2016-01-11 22:02:59    阅读次数:150
js 正则表达式
1.匹配所有类似12rem或者12.32rem的字符串中rem前面的数字var xx = "font-size:12rem;width:12.33rem;height:200rem;";xx.match(/(\d+)+(?=rem\b)|(\d+\.)\d+(?=rem\b)/g);结果:["12"...
分类:Web程序   时间:2016-01-11 11:48:20    阅读次数:153
NSPredicate 应用1
//查找名字里面包含“王”的姓 NSArray *array = [[NSArray alloc]initWithObjects:@"小王",@"王力",@"李丽",@"方方", nil]; NSString *match = @"*王*"; //查找姓王的名字,王字必须为首...
分类:其他好文   时间:2016-01-11 10:18:55    阅读次数:97
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!