Files
ClassContent/历届学生/18课程/class18_2/课程/2021-01-07/笔记.txt
2024-09-27 02:06:13 +08:00

54 lines
660 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

vue react angular
|
尤雨溪
mmodelvviewvmview and model
mmodel vviewccontroller
vue option api (原生js) 2.x
Vue({
data: {
a: "1"
},
methods: {
getdata() {}
}
})
vue class api 2.x
主要是:为了临时实现对 typescript 的支持
class Home extend Vue {
public a: string = "1";
getdata() {
}
}
vue 3 composition api (vue-next vue3.x)
setup() {
var a = ref(1)
const getdata = () => {}
return {
a,
getdata
}
}
vue 优势?
组件系统
响应式系统 页面 <---> 数据
String a = "1";
js + node.js + typescript