- 博客(6)
- 收藏
- 关注
原创 Batch file 常用语句
1. 当前执行命令显示控制 假设文件testbat.bat 只执行一条命令:“echo This is a batch program” 分别在文件第一行加入 echo on, echo off, @echo off后的显示结果为: echo on,显示当前命令 [code="java"]H:\>testbat.bat H:\>echo on H:\>echo This...
2012-12-16 19:08:30 227
原创 Maven in 5 minutes dose not work - firewall issue
When I start to learn maven following the Maven in 5 minutes in the maven official site:http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html I got an error message lik fail to fo...
2012-12-16 19:07:43 92
原创 JS base knowledge (2) - 变量
关于变量类型和hoisting [b]变量类型:[/b] (一)根据变量的作用域分: 局部变量:作用域在函数体内, 全局变量:定义在函数体外。 (二)根据存储方式分:基本类型和引用类型 和JAVA一样,基本类型放在栈中(因为长度固定),引用类型在堆中。 基本类型: number, boolean, string 引用类型: var refChar = new Strin...
2012-09-10 10:36:22 90
原创 JS base knowledge(3) - 事件
[b]加载方式[/b] 为元素加载事件有4种方式: for a link element e.g. 1) DOM Level 0 - Inline model [code="java"][/code] Drawbacks: a)js 代码和html代码耦合,不推荐使用。 b) 事件指向handler函数,而不是复制。执行时为获取当前的element时,需要把this作...
2012-09-10 10:36:02 85
原创 JS base knowledge (1) - protoype, _proto_,继承
Javascript OO - Inheritance JS具有OO特性继承,封装。没有多态? 继承的实现方式原型继承,构造函数继承,组合继承等 (一)原型继承 - prototype chain - 原型链 什么是prototype: 每个JS [b]函数[/b] 都拥有一个prototype对象,它包含了可以被实例共享的属性和方法。 注意和_proto_的区别: 每个[b]对...
2012-09-10 10:35:38 89
原创 JS base knowledge (4) this
this始终指向当前方法的调用者 如果方法调用签名的左边有对象,则this指向该对象。如果无,则默认指向window. [code="java"] function foo(){ console.log(this); } foo();// print window var bar = {name:"bar"}; bar.f1 = function(){ consol...
2012-09-10 10:34:20 57
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人