摘要:
1:对列进行逻辑判断select ID,Score,case when Score>=90 then 'A' when Score>=80 then 'B' when Score>=70 then 'C' when Score>=60 then 'D' when Score>=50 then 'E'... 阅读全文
posted @ 2015-04-17 14:19
馒头的梦想
阅读(539)
评论(0)
推荐(1)
摘要:
带有参数的视图 create function fn_fenye (@count as int,@page as int) returns table as return select * from (select row_number() over (order by id)as num... 阅读全文
posted @ 2015-04-17 14:16
馒头的梦想
阅读(365)
评论(0)
推荐(1)
摘要:
declare @subject nvarchar(50)set @subject=(select Subject from dbo.Scores where ID=1) --select @subject=Subject from dbo.Scores where ID=1--标量 标量就是单值... 阅读全文
posted @ 2015-04-17 14:14
馒头的梦想
阅读(470)
评论(0)
推荐(1)
摘要:
--计算1-100的和 declare @int int=1; declare @total int=0; while(@int<=100) begin set @total=@total+@int; set @int=@int +1; end select @total --计... 阅读全文
posted @ 2015-04-17 14:13
馒头的梦想
阅读(314)
评论(0)
推荐(1)
摘要:
1、application didFinishLaunchingWithOptions:当应用程序启动时执行,应用程序启动入口,只在应用程序启动时执行一次。若用户直接启动,lauchOptions内无数据,若通过其他方式启动应用,lauchOptions包含对应方式的内容。 2、applicati... 阅读全文
posted @ 2015-04-17 13:52
馒头的梦想
阅读(149)
评论(0)
推荐(1)
摘要:
iOS的系统架构分为四个层次:核心操作系统层(Core OS layer)、核心服务层(Core Services layer)、媒体层(Media layer)和可触摸层(Cocoa Touch layer)。下面是IOS系统结构图。iOS结构图 1、Core OS是位于iOS系统架构... 阅读全文
posted @ 2015-04-17 13:49
馒头的梦想
阅读(282)
评论(0)
推荐(0)
摘要:
一、首先列一下公认的资料:先看到下面的代码你肯定就明白了一些:-(CGRect)frame{ return CGRectMake(self.frame.origin.x,self.frame.origin.y,self.frame.size.width,self.frame.size.height... 阅读全文
posted @ 2015-04-17 13:48
馒头的梦想
阅读(145)
评论(0)
推荐(1)
摘要:
本文是《Sunvey the Major Framworks》一文的翻译 框架是一个目录,这个目录包含了共享库,访问共享库里代码的头文件,和其它的图片和声音的资源文件。一个共享库定义的方法或函数可以被应用程序调用。 IOS提供了很多你可以在应用程序里调用的框架。要使用一个框架,需要将它添加到你的... 阅读全文
posted @ 2015-04-17 13:47
馒头的梦想
阅读(156)
评论(0)
推荐(1)
摘要:
在js中,我们直接用XMLHttpRequest请求不同域上的数据时,是不可以的。但是,在页面上引入不同域上的js脚本文件却是可以的,jsonp正是利用这个特性来实现的。 $.ajax({ async: false, url: "http://local.... 阅读全文
posted @ 2015-04-17 13:44
馒头的梦想
阅读(216)
评论(0)
推荐(1)
摘要:
立即执行函数(Immediate Functions) 要了解立即执行函数,先了解函数的基本概念,函数声明,函数表达式,匿名函数 函数声明:使用function声明函数,并指定函数名。 函数表达式:使用function声明函数,但未指定函数名,将匿名函数赋予一个变量。 匿名函数:使用function 阅读全文
posted @ 2015-04-17 13:34
馒头的梦想
阅读(278)
评论(0)
推荐(1)