2016年1月28日

When to Use Em vs. Rem

摘要: Both em and rem are flexible, scalable units which are translated by the browser into pixel values, depending on the font size settings in your design 阅读全文

posted @ 2016-01-28 11:05 fishyk 阅读(122) 评论(0) 推荐(0) 编辑

2016年1月20日

Angularjs service vs factory vs provider

摘要: Angular provides us with three ways to create and register our own service.1) Factory2) Service3) ProviderTL;DR1) When you’re using aFactoryyou create... 阅读全文

posted @ 2016-01-20 11:11 fishyk 阅读(233) 评论(0) 推荐(0) 编辑

2016年1月19日

Angularjs - directive

摘要: 1.What are Directives Directives are one of the most powerful features of AngularJS. You can imagine them as building blocks ( aka re-usable component... 阅读全文

posted @ 2016-01-19 17:53 fishyk 阅读(305) 评论(0) 推荐(0) 编辑

2015年9月1日

js window object

摘要: ---恢复内容开始---1.window对象位置属性: a. IE, Safari, Opera, Chrome提供了screenLeft和screenTop属性, 分别表示窗口相对于屏幕左边和上边的位置. b. Firefox则在screenX和screenY属性中提供相同窗口位置信息,Saf... 阅读全文

posted @ 2015-09-01 16:22 fishyk 阅读(154) 评论(0) 推荐(0) 编辑

2015年8月25日

js string的一些操作

摘要: 1. charAt();如果想获取字符编码,则:charCodeAt();var stringValue ="hello world";alert(stringValue.charAt(4);//"o"2. 字符串操作:concat(),可接受任意参数和“+”类似.3. 字符串操作:slice(),... 阅读全文

posted @ 2015-08-25 16:41 fishyk 阅读(3381) 评论(0) 推荐(0) 编辑

2015年8月20日

Array

摘要: 1. Array.isArray(value),只支持,ie9+, firefox4+, chrome.2. Value instanceOf Array, 假定单一的全局执行环境,如果有两个框架,那就存在不同的执行环境,不同的array构造函数不一样。3. toString() , 会返回“1,2... 阅读全文

posted @ 2015-08-20 00:08 fishyk 阅读(107) 评论(0) 推荐(0) 编辑

2015年8月18日

javascript 基本类型和引用类型

摘要: 1. 基本类型源自一下5种基本数据类型:undefined,null,boolean,number, string2. 基本类型和引用类型具有以下特点: 1. 基本类型值在内存中占据固定大小空间,保存在栈中。 2. 从一个变量向另一个变量复制基本类型的值,会创建这个值得一个副本。 3. 引用类... 阅读全文

posted @ 2015-08-18 22:56 fishyk 阅读(108) 评论(0) 推荐(0) 编辑

2015年6月8日

css div position to parent

摘要: To position an element "fixed" relative to a parent element, you wantposition:absoluteon the child element, and any position mode other than the defau... 阅读全文

posted @ 2015-06-08 16:19 fishyk 阅读(171) 评论(0) 推荐(0) 编辑

2015年4月4日

linux 解压缩/压缩命令大全

摘要: ar解包:tar xvf FileName.tar打包:tar cvf FileName.tar DirName(注:tar是打包,不是压缩!)---------------------------------------------.gz解压1:gunzip FileName.gz解压2:gzip... 阅读全文

posted @ 2015-04-04 17:25 fishyk 阅读(154) 评论(0) 推荐(0) 编辑

2013年8月27日

button with backgroundimage programmaticaly

摘要: UIImage *redButtonImage = [UIImage imageNamed:@"ExitButton.png"]; UIButton *redButton = [UIButton buttonWithType:UIButtonTypeCustom]; re... 阅读全文

posted @ 2013-08-27 00:21 fishyk 阅读(135) 评论(0) 推荐(0) 编辑

导航