Ai
1 Star 0 Fork 1

aeipyuan/vue3学习

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
reactive.html 462 Bytes
一键复制 编辑 原始数据 按行查看 历史
aeipyuan 提交于 2020-04-06 20:31 +08:00 . 简单实现vue3响应
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>reactive实现</title>
</head>
<body>
<script src="./vue.global.js"></script>
<script>
const proxy = Vue.reactive({ name: 'zhangsan' });
Vue.effect(() => {
console.log(proxy.name);
})
proxy.name = 'lisi';
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/aeipyuan/simple_implementation_of_vue3.git
git@gitee.com:aeipyuan/simple_implementation_of_vue3.git
aeipyuan
simple_implementation_of_vue3
vue3学习
master

搜索帮助