码迷,mamicode.com
首页 > 2015年01月22日 > 全部分享
JSON
1.字符串转换成json对象var txt = '{"employees":[' +'{"firstName":"Bill","lastName":"Gates" },' +'{"firstName":"George","lastName":"Bush" },' +'{"firstName":"Th...
分类:Web程序   时间:2015-01-22 21:43:48    阅读次数:142
javascript实现冒泡排序
准备好好学习js了,js写的第一个排序var arr = [2,4,1,5,3];function handle(arr){ for(var i=0;iarr[j+1]){ var tmp=arr[j]; arr[j] = arr[j+1]; arr[j+1] = tmp; }...
分类:编程语言   时间:2015-01-22 21:43:59    阅读次数:226
JUnit 测试
Junit 使用1、忽略测试方法。在使用@Test的方法上使用@Ignore,将不会对此方法进行测试2、测试套件解决的问题:1、对测试类进行统一测试,而不必在单独测试类上一个一个进行测试。使用JUnit的@RunWith以及@SuiteClassses注解,@SuiteClassses后面为待测试类...
分类:其他好文   时间:2015-01-22 21:41:21    阅读次数:191
[leetcode]Generate Parentheses
Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))...
分类:其他好文   时间:2015-01-22 21:41:27    阅读次数:136
空指针和野指针
【转自】http://www.cnblogs.com/mjios/archive/2013/04/22/3034788.html本文目录一、什么是空指针和野指针二、野指针和空指针例子说明:这个Objective-C专题,是学习iOS开发的前奏,也为了让有面向对象语言开发经验的程序员,能够快速上手Ob...
分类:其他好文   时间:2015-01-22 21:43:06    阅读次数:203
刷新轮的使用
1.新建一个刷新轮UIActivityIndeicatorView *activityIndicatorView = [[UIActivityIndecatorView alloc]initWithFrame:CGRectMake(250.0,20.0,30.0,30.0)];2。设置属性风格act...
分类:其他好文   时间:2015-01-22 21:42:38    阅读次数:181
UITableView详解
一、建立 UITableViewDataTable = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, 320, 420)];[DataTable setDelegate:self];[DataTable setDataSource:self]...
分类:其他好文   时间:2015-01-22 21:41:27    阅读次数:159
UISwitch
UISwitch *noticeSwtich = [[UISwitch alloc] initWithFrame:CGRectMake(0, 0, 51, 31)];// noticeSwtich.layer.cornerRadius = noticeSwtich.he...
分类:其他好文   时间:2015-01-22 21:40:38    阅读次数:141
关闭键盘
1、点击固定的按钮关闭键盘-(BOOL)textFieldShouldReturn:(UITextField *)textField{ [textField resignFirstResponder]; return YES;}-(BOOL)textView:(UITextView *)text.....
分类:其他好文   时间:2015-01-22 21:40:55    阅读次数:149
[Android]使用RecyclerView替代ListView(二)
以下内容为原创,转载请注明:来自天天博客:http://www.cnblogs.com/tiantianbyconan/p/4242541.html以前写过一篇“[Android]使用AdapterTypeRender对不同类型的item数据到UI的渲染(http://www.cnblogs.com...
分类:移动开发   时间:2015-01-22 21:42:34    阅读次数:337
comp5353 PPT: Wireshark and Packet Capture
The PPT about wiresahrk can be download in:Sniffing03.pptxAnd this is the excercises PPT:Exercises.ppt
分类:其他好文   时间:2015-01-22 21:40:23    阅读次数:307
u-boot分析(十)----堆栈设置|代码拷贝|完成BL1阶段
u-boot分析(十) 上篇博文我们按照210的启动流程,分析到了初始化nand flash,由于接下来的关闭ABB比较简单所以跳过,所以我们今天按照u-boot的启动流程继续进行分析。今天我们会用到的文档:1. 2440芯片手册:http://download.csdn.net/detail/w....
分类:其他好文   时间:2015-01-22 21:42:24    阅读次数:240
黑名单过滤绕过有感
今天发现一个绕过正则过滤的问题,很多应用使用正则表达式对输入数据做安全验证,比如,在修改设备名称时的过滤过则为:String regex = "^.*[\\\\/:\\*\\?\"\\|'%&]+.*$"; //出现1个或多个”\/:*?"|'%&”字符表示不合法Pattern pattern = ...
分类:其他好文   时间:2015-01-22 21:42:13    阅读次数:223
MYSQL登录错误:mysqladmin: connect to server at ‘localhost’ failed
一、mysql登录错误mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' (using password: YES)'解决办法:破解mysql密码#...
分类:数据库   时间:2015-01-22 21:40:38    阅读次数:162
黑马程序员--NSString和NSMutableString的常用方法
------Java培训、Android培训、iOS培训、.Net培训、期待与您交流! -------int age = 20;NSRangerange =NSMakeRange(1,3);// 类方法创建字符串// 格式化字符串NSString *str1 = [NSString stringWi...
分类:其他好文   时间:2015-01-22 21:39:02    阅读次数:193
Linux 上安装 weblogic12C (静默安装) (一)
在linux上安装weblogic12c的两种方式,第一种静默安装...
分类:Web程序   时间:2015-01-22 21:39:41    阅读次数:257
jquery表单序列化
http://gongwen.sinaapp.com/article-206.htmljquery表单序列化,数据格式转成json格式;用的时候直接$('#FormId').serializeJson();便可.代码如下://jquery插件把表单序列化成json格式的数据start (functi...
分类:Web程序   时间:2015-01-22 21:40:31    阅读次数:187
2216条   上一页 1 ... 11 12 13 14 15 16 17 ... 131 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!