摘要:
1.html基础html是用来制作网页的标记语言,不需编译,直接由浏览器执行。大小写不敏感,推荐使用小写。html文件必须使用html或htm为文件名后缀。html主体结构:(1)DTD头:用于告诉浏览器用什么标准解析当前页面(2)head部分:告诉浏览器一些相应信息(3)body部分:给人看的数据... 阅读全文
摘要:
三次握手建立连接第一次握手:主机A发送位码为syn=1,随机产生seq number=1234567的数据包到服务器,主机B由SYN=1知道,A要求建立联机;第二次握手:主机B收到请求后要确认联机信息,向A发送ack number=(主机A的seq+1),syn=1,ack=1,随机产生seq=76... 阅读全文
摘要:
- (void)getHeightWithLabel:(UILabel *)label andFontSize:(CGFloat)size{ label.numberOfLines = 0; NSMutableAttributedString *labelString = [[NSMut... 阅读全文
摘要:
nil表示一个对象指针为空,针对对象>示例代码: NSString *someString = nil; NSURL *someURL = nil; id someObject = nil; if (anotherObject == nil) // do somethingNil表示... 阅读全文
摘要:
// _webView = [[UIWebView alloc] initWithFrame: CGRectMake(0, 0, self.view.frame.size.width, 0)]; _webView.delegate = self; _webView.scrollView.bou... 阅读全文