This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ObjectEqual(obj1,obj2) { | |
var propName; | |
for(propName in obj1) { | |
if (typeof obj1[propName] === 'object') { | |
return arguments.callee(obj1[propName],obj2[propName]); | |
}else { | |
if (obj1[propName] !== obj2[propName]) | |
return false; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title> quick run !</title> | |
<script src=""></script> | |
</head> | |
<body> | |
选择 js 文件执行: | |
<input type='file' accept='.js' value='' /> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on | |
set smartindent | |
set autoindent | |
set tabstop=4 | |
set softtabstop=4 | |
set shiftwidth=4 | |
set smarttab | |
set number | |
set showmatch | |
colorscheme delek |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// '+' 运算符的结合性 | |
当加号运算符和字符串和数字一起使用时,需要考虑加号的结合性的对运算顺序的影响。也就是说,运算结果是依赖于运算符的运算顺序的。 | |
1+2+"3" => 33 | |
"1"+2+"3" => "123" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Lalala { | |
public static void main(String[] args) { | |
new Runnable() { | |
public void run() { | |
System.out.println("runnable."); | |
} | |
}.run(); | |
// 好想 js 命名函数 | |
int i = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.stream.Stream; | |
public class StreamCase { | |
public static void main(String[] args) { | |
List<String> strs = new ArrayList<String>(); | |
strs.addAll(Arrays.asList("a", "b", "c")); | |
Stream<String> stream = strs.stream(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:#javascript 权威指南笔记 | |
## 第1章 概述 | |
## 第2章 词法结构 | |
所谓直接量(literal) .就是程序中直接使用的数据值 | |
## 第3章 类型、值和变量 | |
Javascript 是一种面向对象的语言。这意味着不再需要定义全局的函数去操作不同类型的值——数据类型本身可以定义方法来使用值。 | |
数字、布尔值、null和undefined属于不可变类型 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
安禅制毒龙 | |
绝望 | |
江河日下兮,颓废边缘之边。危亡之机,不能自已。怨天,怨地,怨自己。然,条条道理,心中清晓;种种诱惑,追追不已。心绪浮躁,气虚脑涨. | |
改变 | |
舍大而持小。虽小,每日精进,亦强于无所作为,抱残守缺。不以恶小而为之,不以善小而不为。万般谋虑,不如步步为营。 | |
涅槃 | |
七日百步,为始。循序而进,渐入佳境。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:#javascript 权威指南笔记 | |
## 第1章 概述 | |
## 第2章 词法结构 | |
所谓直接量(literal) .就是程序中直接使用的数据值 | |
## 第3章 类型、值和变量 | |
Javascript 是一种面向对象的语言。这意味着不再需要定义全局的函数去操作不同类型的值——数据类型本身可以定义方法来使用值。 | |
数字、布尔值、null和undefined属于不可变类型 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta content="text/html; charset=UTF-8" http-equiv="content-type"/> | |
<meta name='viewport' content='width=device-width, initial-scale=1.0' | |
<title>HTML5 Form</title> | |
</head> | |
<body> | |
<div id="bin"></div> | |
<form> |