【1】LeetCode 136 Single Number 题意:奇数个数,其中除了一个数只出现一次外,其他数都是成对出现,比如1,2,2,3,3...,求出该单个数。 解法:容易想到异或的性质,两个相同的数异或为0,那么把这串数从头到尾异或起来,最后的数就是要求的那个数。 代码如下: 【2】Lee
分类:
其他好文 时间:
2016-03-17 19:22:07
阅读次数:
123
创建对象 var box = new Object();//创建对象 box.name = 'Lee'; //添加属性 box.age = 100; box.run = function(){ return this.name + this.age + "运行中"; //this 表示当前作用域下对
分类:
Web程序 时间:
2016-03-10 21:48:20
阅读次数:
273
匿名函数和闭包 学习要点:1.匿名函数2.闭包 匿名函数就是没有名字的函数,闭包是可以访问一个函数作用域里变量的函数。声明:本节内容需要有面向对象和少量设计模式基础。 一、匿名函数 //普通函数function box(){ //函数名是box return 'Lee'; } //匿名函数funct
分类:
其他好文 时间:
2016-03-09 23:58:31
阅读次数:
438
<!DOCTYPE html> <html> <head> <meta name="author" content="Yeeku.H.Lee(CrazyIt.org)" /> <meta http-equiv="Content-Type" content="text/html; charset=GB
分类:
Web程序 时间:
2016-03-09 11:06:08
阅读次数:
153
<!DOCTYPE html> <html> <head> <meta name="author" content="Yeeku.H.Lee(CrazyIt.org)" /> <meta http-equiv="Content-Type" content="text/html; charset=GB
分类:
Web程序 时间:
2016-03-08 10:36:15
阅读次数:
151
一、JSON的语法可以表示三个类型值:1.简单值 2.对象 3. 数组 二、JSON对象的表示方式 { "name" : "Lee", "age" : 100 } ps:与JavaScript的对象字面量相比,JSON对象有三个不一样:1.JSON没有声明变量。 2.没有末尾的分号。3.对象的属性必
分类:
Web程序 时间:
2016-03-01 20:31:30
阅读次数:
178
本页内容
1.何为Web
2.HTTP协议概述
3.HTTP连接的两种类型
4.HTTP消息格式
5.Cookie技术
6.Web缓存/代理服务技术
1.何为Web
Web即World Wild Web(万维网),由Tim Berners-Lee发明。
Web由网页构成,支持网页互相连接。
网页(Web Page)包含多个对象(Objects),...
分类:
Web程序 时间:
2016-02-28 11:12:22
阅读次数:
257
IE8不支持html5 placeholder的解决方法。 /** * jQuery EnPlaceholder plug * version 1.0 2014.07.01戈志刚 * by Frans.Lee <dmon@foxmail.com> http://www.ifrans.cn */ (f
分类:
Web程序 时间:
2016-02-16 22:02:04
阅读次数:
208
一、本将主要介绍 Union、Concat、Intersect、Except的使用操作 1.Union 查询昵称中带有Friend和带有Lee的用户 Linq (from a in Blog_Users where a.NickName.Contains("Lee") select a) .Unio...
分类:
其他好文 时间:
2016-01-31 02:48:13
阅读次数:
196
先贴几个链接:http://blog.csdn.net/abcjennifer/article/details/7639681 Rachel-Zhang的http://blog.csdn.net/manji_lee/article/details/8922474 David G. Lowe的两篇标志...
分类:
其他好文 时间:
2016-01-24 23:56:17
阅读次数:
1080