摘要: //延迟执行 dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3 * NSEC_PER_SEC)),dispatch_get_main_queue(), ^{ //要执行的代码 }); 阅读全文
posted @ 2015-10-18 15:45 voidcat 阅读(189) 评论(0) 推荐(0) 编辑
摘要: App Transport Security has blocked a cleartext HTTP (http://)标签:classstylelogcom使用httpsiithtml 错误描述:App Transport Security has blocked a cleartext HTT... 阅读全文
posted @ 2015-10-15 00:15 voidcat 阅读(529) 评论(0) 推荐(0) 编辑
摘要: 利用原生JSON对象,将对象转为字符串var jsObj = {};jsObj.testArray = [1,2,3,4,5];jsObj.name = 'CSS3';jsObj.date = '8 May, 2011';var str = JSON.stringify(jsObj);alert(s... 阅读全文
posted @ 2015-09-08 19:48 voidcat 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 在PHP中,没有普遍意义上的静态变量。与Java、C++不同,PHP中的静态变量的存活周期仅仅是每次PHP的会话周期,所以注定了不会有Java或者C++那种静态变量。所以,在PHP中,静态变量的存在意义仅仅是在某个结构体中(方法或者类)中传递一个变量,其作用域在此文件内。看个例子好了12345678... 阅读全文
posted @ 2015-09-08 19:44 voidcat 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 转载自imb文库CSRF(Cross Site Request Forgery, 跨站域请求伪造)是一种网络的攻击方式,该攻击可以在受害者毫不知情的情况下以受害者名义伪造请求发送给受攻击站点,从而在并未授权的情况下执行在权限保护之下的操作,有很大的危害性。然而,该攻击方式并不为大家所熟知,很多网站都... 阅读全文
posted @ 2015-09-05 20:44 voidcat 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 作 者: CRoot时 间: 2015-06-02,19:02:11链 接: http://bbs.pediy.com/showthread.php?t=201147/**Author:CRoot*Source:http://croot.cf/HelloWord/239.html*Date:2015... 阅读全文
posted @ 2015-07-13 21:44 voidcat 阅读(281) 评论(0) 推荐(0) 编辑
摘要: "; */// 利用淘宝接口根据ip查询所在区域信息$res1 = file_get_contents("http://ip.taobao.com/service/getIpInfo.php?ip=$ip");$res1 = json_decode($res1);/* print_r($res1);... 阅读全文
posted @ 2015-07-11 22:36 voidcat 阅读(584) 评论(0) 推荐(0) 编辑
摘要: 本篇文章,主要先重点说明magic_quotes_gpc、mysql_real_escape_string、addslashes三个函数方法的含义、用法,并举例说明。然后阐述下三者间的区别、关系。一、magic_quotes_gpc这个函数,只有在页面传递 $_GET,$_POST,$_COOKIE... 阅读全文
posted @ 2015-07-10 22:37 voidcat 阅读(480) 评论(0) 推荐(0) 编辑
摘要: get_magic_qoutes_gpc():当magic_quotes_gpc=On的时候,函数get_magic_quotes_gpc()就会返回1当magic_quotes_gpc=Off的时候,函数get_magic_quotes_gpc()就会返回0magic_quotes_gpc函数在p... 阅读全文
posted @ 2015-07-10 22:26 voidcat 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 先贴上源代码 1 2 3 4 5 仿腾讯游戏首页小幻灯片jquery插件 6 7 34 35 36 37 38 39 40 41 42 43 ... 阅读全文
posted @ 2015-07-04 21:20 voidcat 阅读(361) 评论(0) 推荐(0) 编辑