以上php实例运行的结果如下: 上面php代码已经注释的很清楚,相信出手也会明白!下面还是对php教程做下简单的分析: 1.全局变量$_SERVER['PHP_SELF']是获取脚本变量的绝对路径,可以打印出看看就清楚了。 2.分页的本质是将数据库的的数据一段一段的显示出来,比如上面的php实例中: ...
分类:
Web程序 时间:
2016-04-12 19:09:24
阅读次数:
211
调用一次计时器方法: [cpp] view plain copy myTimer = [NSTimer scheduledTimerWithTimeInterval:1.5 target:self selector:@selector(scrollTimer) userInfo:nil repeat ...
分类:
移动开发 时间:
2016-04-12 14:18:27
阅读次数:
296
body,td{
font-family:微软雅黑;
font-size:10pt;
}
Edit1.5实现优先级队列问题:实现一个队列,能够按照给定的优先级排序,并且每次pop操作时都可以返回优先级最高的那个元素.解决方案1.importheapq2.classPriorityQueue:3.def__init__(self):4.self._queue=[]5.self._index=0..
分类:
其他好文 时间:
2016-04-12 07:40:22
阅读次数:
226
首先对视图要有一定的了解,这里我就不多介绍了, 先说一种已经基本不用的头尾式动画 首先 设置一个view UIView * testView = [UIView alloc]init]; 确定位置 self.testView.frame = CGRectMake(0,0,50,50); 开始动画 [ ...
分类:
移动开发 时间:
2016-04-12 01:45:41
阅读次数:
177
238. Product of Array Except Self Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product o ...
分类:
其他好文 时间:
2016-04-12 00:22:17
阅读次数:
177
MRC内存管理 环境:先关闭arc模式,选中项目-》build Settings 需记住Tips: 1.alloc,new, retain, copy,mutableCopy 需要release或autorelease 2.self 在实例方法(动态方法)代表当前类,在类方法(静态方法)中谁调用则代 ...
分类:
其他好文 时间:
2016-04-11 20:47:08
阅读次数:
227
/** * 将ImageVi的Image保存到相册 */ UIImageWriteToSavedPhotosAlbum(self.iconBigImageView.image, self, @selector(image:didFinishSavingWithError:contextInfo:), ...
分类:
其他好文 时间:
2016-04-11 20:32:49
阅读次数:
135
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyBoardFrameChange:) name:UIKeyboardWillChangeFrameNotification object:nil] ...
分类:
其他好文 时间:
2016-04-11 20:24:40
阅读次数:
130
1、返回按钮的颜色 self.navigationController.navigationBar.tintColor = [UIColor whiteColor]; 2、设置返回按钮的内容 A -> B 在push的时候,在A中添加代码: UIBarButtonItem *backItem = [ ...
分类:
移动开发 时间:
2016-04-11 18:41:56
阅读次数:
211
UITextView代理方法:判断 -(void)textViewDidEndEditing:(UITextView *)textView{ if ([self stringContainsEmoji:self.feedbackTextView.text]) { UIAlertView *alert ...
分类:
移动开发 时间:
2016-04-11 18:38:45
阅读次数:
262