Skip to content

Commit 5a8bc88

Browse files
committed
Update Java Note
1 parent 9cf39ea commit 5a8bc88

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

Web.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ HTML(超文本标记语言—HyperText Markup Language)是构成 Web 世界
1818

1919

2020

21+
参考视频:https://www.bilibili.com/video/BV1Qf4y1T7Hx
22+
2123

2224

2325
***
@@ -7468,8 +7470,8 @@ Jackson:开源免费的 JSON 转换工具,SpringMVC 转换默认使用 Jacks
74687470
public void test03() throws Exception{
74697471
//map<String,User>转json
74707472
HashMap<String,User> map = new HashMap<>();
7471-
map.put("黑马一班",new User("张三",23));
7472-
map.put("黑马二班",new User("李四",24));
7473+
map.put("sea一班",new User("张三",23));
7474+
map.put("sea二班",new User("李四",24));
74737475
String json = mapper.writeValueAsString(map);
74747476
System.out.println("json字符串:" + json);
74757477

@@ -7478,8 +7480,8 @@ Jackson:开源免费的 JSON 转换工具,SpringMVC 转换默认使用 Jacks
74787480
new TypeReference<HashMap<String,User>>(){});
74797481
System.out.println("java对象:" + map2);
74807482
}
7481-
//json字符串 = {"黑马一班":{"name":"张三","age":23},"黑马二班":{....}
7482-
//map对象 = {黑马一班=User{name='张三', age=23}, 黑马二班=User{name='李四', age=24}}
7483+
//json字符串 = {"sea一班":{"name":"张三","age":23},"sea二班":{....}
7484+
//map对象 = {sea一班=User{name='张三', age=23}, sea二班=User{name='李四', age=24}}
74837485
```
74847486

74857487
* List
@@ -7534,7 +7536,7 @@ RegExp:
75347536

75357537
#### 验证用户
75367538

7537-
使用onsubmit表单提交事件
7539+
使用 onsubmit 表单提交事件
75387540

75397541
![](https://seazean.oss-cn-beijing.aliyuncs.com/img/Web/表单校验.png)
75407542

@@ -8542,7 +8544,7 @@ Vue只关注视图层,并且非常容易学习,还可以很方便的与其
85428544
el:"#div",
85438545
data:{
85448546
name:"张三",
8545-
classRoom:"黑马程序员"
8547+
classRoom:"sea程序员"
85468548
},
85478549
methods:{
85488550
study(){
@@ -8732,15 +8734,15 @@ v-on:为 HTML 标签绑定事件,有简写方式
87328734
<div id="div">
87338735
<div>{{name}}</div>
87348736
<button v-on:click="change()">改变div的内容</button>
8735-
<button @click="change()">改变div的内容</button> <!--把黑马改成传智播客-->
8737+
<button @click="change()">改变div的内容</button> <!--把sea改成传智播客-->
87368738
</div>
87378739
</body>
87388740
<script src="js/vue.js"></script>
87398741
<script>
87408742
new Vue({
87418743
el:"#div",
87428744
data:{
8743-
name:"黑马程序员"
8745+
name:"sea程序员"
87448746
},
87458747
methods:{
87468748
change(){

0 commit comments

Comments
 (0)