自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(90)
  • 收藏
  • 关注

原创 angular源码一,module加载器

angularModule = setupModuleLoader(window);angularModule指向

2014-07-28 14:55:39 10418 2

转载 css hack

http://www.cnblogs.com/lhb25/archive/2013/03/11/browser-css-js-hacks-browserhacks.html

2014-01-28 11:35:42 567

转载 从新浪微博的改版谈网页重构

http://developer.51cto.com/art/201109/290414_2.htm提到bigpipe方式,yslow工具

2014-01-14 16:23:09 682

转载 jsonp mashup

http://www.cnblogs.com/chopper/archive/2012/03/24/2403945.htmlhttp://www.ibm.com/developerworks/cn/web/wa-aj-jsonp1/

2014-01-14 15:32:52 592

转载 清除浮动的技术

如果你很明确的知道接下来的元素会是什么,可以使用clear:both;来清除浮动。这个方法很不错,它不需要hack,不添加额外的元素也使得它有良好的语义性。当然事情并不是都可以这样解决的,工具箱中还是需要另外几个清除浮动的工具。空div方法从字面来看,是一个空的 div。。有时可能会用或者一些其他元素,但是 div 是最常用的,因为它没有浏览器默认样式;没有特殊功能,而且一般不

2014-01-12 16:17:23 509

转载 float:center

我们都知道float:left和float:right,但是否想过float:center呢?居中浮动。。。            列表一        列表二        列表三    我们希望实现li是浮动的,并且居中的(li个数不固定,ul宽度未知)。可以设置ul的text-align:center,再设置li的display,可以实现居中,但这样不是我们的

2014-01-12 15:48:29 4496

原创 关于web文档的语言

https://www.w3.org/International/getting-started/language.enhttps://www.w3.org/International/questions/qa-html-language-declarationshttp://www.w3.org/blog/International/category/articles/

2014-01-10 23:26:27 669

翻译 Dive into HTML5 chapter1

第一章介绍HTML5的五个特点。1,HTML5并不是一个大的概念,而是若干小功能的集合。2,它是向后兼容的,所以不需要对旧系统做任何改动。3,容易学习和上手。4,已经被广泛支持。5,HTML5是未来。

2014-01-09 17:42:56 522

原创 tint

tint

2014-01-02 15:56:38 543

转载 css just for webkit browser

@media screen and (-webkit-min-device-pixel-ratio:0) { .treeview { .treeview-icon { bottom: @scrollbarHeight !important; } }}

2013-12-19 11:44:32 645

转载 js remove from array

First, find the index of the element you want to remove:var array = [2, 5, 9];var index = array.indexOf(5);Then remove it with splice:if (index > -1) { array.splice(index, 1);}The

2013-12-13 16:06:26 1970

转载 js clone

// Shallow copyvar newObject = jQuery.extend({}, oldObject);// Deep copyvar newObject = jQuery.extend(true, {}, oldObject);

2013-12-12 13:26:20 507

转载 ngclass in angular

http://stackoverflow.com/questions/7792652/what-is-the-best-way-to-conditionally-apply-a-class-with-angularjsng-class="{selected: $index==selectedIndex}"ng-class="($index==selectedIndex) ? '

2013-12-12 13:25:39 3551

原创 angular directive ngmodel with jquery ui datepicker

app.directive('datepicker',function(){return{restrict:'A',require:'ngModel',link:function(scope, element, attrs, ngModelCtrl){$(function(){element.datepicker({dateFormat:'dd/mm

2013-12-10 14:35:33 1911

原创 css user-select and box-sizing

user-select 控制用户选择方式box-sizing 是否把边框算到整体宽度内

2013-12-10 09:59:11 806

转载 HTML5 Storage Wars - localStorage vs. IndexedDB vs. Web SQL

http://csimms.botonomy.com/2011/05/html5-storage-wars-localstorage-vs-indexeddb-vs-web-sql.htmlCurrently, there are three competing approaches for saving serious amounts of data (i.e., persi

2013-11-21 14:32:04 1151

转载 html5 history api

http://diveintohtml5.info/history.html

2013-11-20 16:18:59 895

转载 Making AJAX Applications Crawlable

Making AJAX Applications Crawlable.https://developers.google.com/webmasters/ajax-crawling/docs/specification?csw=1

2013-11-20 16:16:21 726

原创 less

js动态修改less:首先,less有client或server两种compile模式,可以在server side先编译成为css,也可以直接使用less到客户端。如果直接在客户端使用less,如下,就可以用js来动态修改变量。此时要引用less.js。 http-equiv="Content-Type" content="text/html; charset=utf-8"

2013-11-20 16:14:21 2205

原创 angular location replace

终于搞明白这个replace怎么用了。就是为了重定向用,比如常见的有些页面上写到几秒钟后将跳转到某某页面。这时候,这个重定向的页面实际上是不希望进入到location的history里的,这时就用replace。

2013-11-20 15:52:56 1830

转载 9月17日

五款js模板引擎:http://www.csdn.net/article/2013-09-16/2816951-top-five-javascript-templating-enginesMustache、Underscore Templates、Embedded JS Templates、HandlebarsJS、Jade templatingJolla宣布Sailfish

2013-09-17 17:42:25 555

原创 ie style 不支持 angular expression

为了取整数,用filter写了类似下面的code,但在ie下不起作用:后来改成了如下,在controller返回,好使了:ng-style="getStyle($index)">$scope.getStyle = function(index){return {position: 'absolute',top: (index % 3 *

2013-09-09 11:41:21 2099

转载 Making sure a web page is not cached, across all browsers

http://stackoverflow.com/questions/49547/making-sure-a-web-page-is-not-cached-across-all-browsers/2068407#2068407The correct minimum set of headers that works across all mentioned browsers:

2013-09-09 11:26:22 886

原创 event ie firefox 兼容性问题

<br />IE支持window.event, event.keyCode,event.returnValue <br />Firefox支持event.charCode ,event.preventDefault();<br /> <br /> <br />$amount.bind("keypress", function(event){<br />  if(window.event) {<br />   event = window.event;<br />   var keyCode = event.

2010-12-06 14:32:00 479

原创 js两个等号和三个等号的区别

<br />http://ilovejsj.javaeye.com/blog/473474<br /> <br />首先,== equality 等同,=== identity 恒等。 <br />==, 两边值类型不同的时候,要先进行类型转换,再比较。 <br />==,不做类型转换,类型不同的一定不等。 <br /><br />下面分别说明: <br />先说 ===,这个比较简单。下面的规则用来判断两个值是否===相等: <br />1、如果类型不同,就[不相等] <br />2、如果两个都是数值,并

2010-12-02 13:18:00 1923

原创 SWIFT

wiki link : http://en.wikipedia.org/wiki/SWIFT

2010-10-22 15:14:00 439

转载 BAI format

<br />wiki link: http://en.wikipedia.org/wiki/BAI_(file_format)<br /> <br />BAI2 reference: http://www.phoenixhecht.com/treasuryresources/PDF/Cash_Management_2005.pdf

2010-10-22 14:16:00 655

原创 String format

<br />在JDK1.5中,String类增加了一个非常有用的静态函数format(String  format, Objece...  argues),可以将各类数据格式化为字符串并输出。其中format参数指定了输出的格式,是最复杂也是最难掌握的一点,而argues则是一系列等<br />在JDK1.5中,String类增加了一个非常有用的静态函数format(String  format, Objece...  argues),可以将各类数据格式化为字符串并输出。其中format参数指定了输出的格式

2010-07-09 11:51:00 371

原创 ajax struts2 validation

<br />http://struts.apache.org/2.0.14/docs/ajax-validation.html

2010-06-25 15:58:00 485

原创 Ajax validation with Struts 2

<br />From: <br />http://www.javaworld.com/javaworld/jw-10-2008/jw-10-struts2validation.html?page=1<br /> Support for Ajax and JavaScript takes the pain out of Web-form validation<br />Writing code to validate Web-form input can be even more of a chore tha

2010-06-25 11:48:00 2575

原创 sql on where having

<br />sql on where having

2010-06-19 16:59:00 477

原创 反身代词,物主代词,双重所有格

<br />名词的格:<br />1,有生命生物的物品:<br />所有格+名词<br />2,无生命所有<br />名词 + of + 名词<br />3,有生命生物定语较长或名词较长<br />用of<br />4,双重所有格,表示部分(a,any。。。),或有感情色彩(that,this等指示代词)<br />http://baike.baidu.com/view/200879.html?wtp=tt<br /> <br />所有代名词:mine,hers<br /> <br />反身代词:mysel

2010-06-09 21:43:00 1390

转载 Java数据类型与各数据库类型映射一览表

<br />from:<br />http://hi.baidu.com/chinagenius/blog/item/3817d6f394359fcc0b46e045.html<br /> <br />下表说明用来当作从产生资源的模型的java.sql.Type值之间的关系,其对应的Java物件类型,以及在受支援的JDBC平台上每一个这些类型的实作(若有的话)。     <br />表格也会指出标准Portal Content Publishing范本所支援的类型。其他类型可透过使用自订的范本加以支援。  

2010-06-09 13:52:00 11944

原创 定语和补语的区别

在学习新概念2时,有两个句子:He is finding this trip very exciting!I always win a little prize for the worst garden in the town.第一句是复合宾语(宾补),第二句是介词短语做定语,想知道这两者的区别。from:http://iask.sina.com.cn/b/13468599.htmlHe has a wish to travel around the world 这里的to travel aroun

2010-06-07 21:52:00 13891

原创 批处理文件中,setlocal的用法

<br />批处理文件中,setlocal的用法:http://bbs.bathome.cn/thread-2051-1-1.html<br />如果没有显式的endlocal,则在bat文件执行结束后隐式的自动执行endlocal.

2010-06-05 22:01:00 911

原创 she heard the door open

这里的open应是不及物动词 我不可能听到门被开了 而是门开了<br />再加上听到了全过程 所以用hear sb/sth do sth<br />如果是正持续动词正在发生 则用ing <br />如 I heard them reading loudly when I passed their classroom(我经过时他们正在读 )<br />I saw two beautiful girls dancing in the park when I walked through

2010-06-03 22:10:00 950

原创 have sth done

people would rather pay large sums of money than have their life work destroyed by gangstershave sth done.是“让……被”的意思,这里就是让他们的工作生活被歹徒毁掉,因为sth(their life work)与do(destroy)是被动关系,所以用过去分词destroyed,另外by sb表示“被某人”,也表示这里的被动关系gave him a state funeral and had a

2010-06-03 22:09:00 743

原创 介宾短语by destroying his shop.

by destroying his shop.<br />此句中的destroying是动名词(并非现在分词),因为by是介词,介词后面的动词应该用动名词(ing)形式,因为原本介词应与名词组成介宾短语从而在句子中充当成份的,因此在介词后面用到动词的时候就要用动名词或者其相应的名词。<br />这里by destroying his shop作方式状语。

2010-06-03 22:08:00 1567

原创 伴随状语The man had returned,accompanied by a pliceman.

<br />http://baike.baidu.com/view/1364621.html?wtp=tt<br /> <br />使用分词形式<br />  The dog entered the room, following his master(这条狗跟着主人进了屋)。  The master entered the room,followed by his dog(主人进了屋,后面跟着他的狗)。

2010-06-03 22:07:00 868

原创 he is finding this trip very exciting

<br />Why ing?<br /> <br />be finding 可理解成“发现”<br /> <br />http://zhidao.baidu.com/question/88761913.htmlfind+宾语+形容词做宾补<br />find trip exciting;find the room clean<br />注意,在本句中用的是find的进行时态。<br /><br />在收听外台的广播中经常能听到find不用一般式,而用进行式。<br />eg:We're fi

2010-06-03 21:15:00 3852

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除