This file contains hidden or 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.# **HTML注释** # | |
| ```<!--注释内容 -->``` | |
| 对java代码无作用 只对HTML代码有效 | |
| 在加载的时候,仍然会经过服务器端进行加载解析,虽不显示在页面,但可以在浏览器控制台看到 | |
| 2.# **Jsp注释** # | |
| ```<% //注释内容%> 或者 <% /*注释内容*/%>``` | |
| 3.# **JSP隐藏注释** # |
This file contains hidden or 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
| # 位运算符 # | |
| 以比特位为单位进行运算 | |
| 位运算符要求操作数必须都是整型数据(byte、short、 int、 long)或者是可以转换为整型的数据类型(比如char 类型 ) | |
| – 右移(>>)、左移(<<)、无符号右移(>>>)、位与(&)、 位或(|)、 位异或(^)、 位反(~) | |
| 、减(-)、乘(*)、除(/) | |
| – 取模运算符 | |
| • % | |
| – 自增(减)运算符 | |
| • ++、 -- |
This file contains hidden or 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
| # • char类型 # | |
|  | |
| – 基本数据类型(Primary Data Type) | |
| – 引用数据类型(Reference Data Type) | |
| # • Java基本数据类型 # | |
| – 8种 | |
| – 4类 |
This file contains hidden or 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
| ++人们利用符号来计数的方法 | |
| 由一组数码符号和两个基本因素“基数”与“位权”构成++ | |
| **• 基数** | |
| – 进位计数制的每位数上可能有的数码的个数 | |
| – 如:十进制的每位上的数码有0、 1……9十个数 | |
| 码,所以基数为10,而二进制、八进制和十六 | |
| 进制的基数分别是2、 8和16 |
This file contains hidden or 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
| # 标识符(Identifier) # | |
| • 定义 | |
| – Java对程序中的各个元素加以命名时使用的命 | |
| 名记号称为标识符(identifier)。 | |
| – 类名、变量名、常量名、方法名、 … | |
| • 特点 | |
| – Java语言中,标识符是以字母、下划线(_)、美 | |
| 元符($)开始的一个字符序列,后面可以跟字母、 |
This file contains hidden or 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
| # 计算机基础概述 # | |
| • **第一代电子计算机** | |
| – 电子管计算机(1946—1958年) | |
| – ENIAC | |
| – 机器语言、汇编语言 | |
| – 应用领域以军事和科学计算为主 | |
| • **第二代电子计算机** | |
| – 晶体管计算机(1958—1964年) |
This file contains hidden or 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.原型链继承 | |
| //父类 | |
| function Person(){ | |
| this.name ="曹德申"; | |
| this.age="41"; | |
| this.sex ="男"; |
This file contains hidden or 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
| # JS继承 # | |
| **js里常用的如下两种继承方式:** | |
| 通过原型链方式实现继承(对象间的继承) 类式继承(构造函数间的继承)由于js不像Java那样是真正面向对象的语言,js是基于对象的,它没有类的概念。所以,要想实现继承,可以用js的原型prototype机制或者用apply和call方法去实现。 | |
| **原型链** | |
| 构造函数、原型、实例的关系: | |
| 每个构造函数都有一个原型对象(prototype),原型对象都包含一个指向构造函数的指针(constructor),而实例都包含一个指向原型对象的内部指针(proto)。 |
NewerOlder