上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页
摘要: -(void)close{ [UIView animateWithDuration:1.0f animations:^{ self.view. window.alpha = 0; self.view.window.frame = CGRectMake( self.view.window.bound... 阅读全文
posted @ 2015-06-19 15:10 谢小锋 阅读(166) 评论(0) 推荐(0) 编辑
摘要: NSArray* array=@[@"ze",@"feng",@"xie"]; NSString * path =[NSHomeDirectory() stringByAppendingPathComponent:@"array.plist"]; BOOL isSuccess=[NSKeyedAr... 阅读全文
posted @ 2015-06-15 10:51 谢小锋 阅读(182) 评论(0) 推荐(0) 编辑
摘要: [[NSUserDefaults standardUserDefaults]setObject:@"32" forKey:@"3323"]; NSLog(@"%@",NSHomeDirectory()); [[NSUserDefaults standardUserDefaults] synchro... 阅读全文
posted @ 2015-06-08 10:19 谢小锋 阅读(139) 评论(0) 推荐(0) 编辑
摘要: Math对象 执行常见的算数任务 常用方法 round()四舍五入 random()返回0~1之间的随机数 max():返回最高值 min():返回中的最低值 abs():返回绝对值--> <script>// document.write(Math.round(2.3)); document.wr 阅读全文
posted @ 2015-05-20 00:44 谢小锋 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-05-20 00:37 谢小锋 阅读(98) 评论(0) 推荐(0) 编辑
摘要: // getFullYear():获得年份// getTime():获得年份// setFullYear():获得年份// getDay():获得星期// var date=new Dat... 阅读全文
posted @ 2015-05-20 00:21 谢小锋 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 1 。string 对象可以处理已有的字符窜对象// 字符串可以用单引号或双引号// 2。字符串中查找字符串:indexof() var str1 ="hello world"; //字符串所在位置 不存在返回... 阅读全文
posted @ 2015-05-19 22:13 谢小锋 阅读(104) 评论(0) 推荐(0) 编辑
摘要: // 1// people=new Object();// people.name="zefeng";// people.age="24";// people.old="young... 阅读全文
posted @ 2015-05-19 22:12 谢小锋 阅读(106) 评论(0) 推荐(0) 编辑
摘要: --> 阅读全文
posted @ 2015-05-18 16:58 谢小锋 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 使用场景:网银转账时,输入对方卡号,需要输入两次,通常第二次输入的输入框是不允许粘贴的,这样就在一定程度上保证了卡号的准确性。使用场景:很多网站上的页面内容是不允许复制的,这样可以防止用户或者程序恶意的去抓取页面数据。以前的起点阅读小说时,就是不允许复制内容,现在更狠,把左键选择内容和右键菜单也都屏... 阅读全文
posted @ 2015-05-18 11:38 谢小锋 阅读(321) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页