摘要: 看文档:https://v3.cn.vuejs.org/guide/computed.html#%E8%AE%A1%E7%AE%97%E5%B1%9E%E6%80%A7%E7%9A%84-setter 基本例子 计算属性 <!DOCTYPE html> <html> <head> <meta cha 阅读全文
posted @ 2021-12-17 17:19 漫漫长路</> 阅读(45) 评论(0) 推荐(0)
摘要: 文档: https://v3.cn.vuejs.org/guide/template-syntax.html 原始HTML <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <script src="js/vue 阅读全文
posted @ 2021-12-17 16:32 漫漫长路</> 阅读(31) 评论(0) 推荐(0)
摘要: 文档:https://v3.cn.vuejs.org/guide/introduction.html 声明式渲染 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <script src="js/vue.min. 阅读全文
posted @ 2021-12-17 16:03 漫漫长路</> 阅读(51) 评论(0) 推荐(0)
摘要: 数据与方法 当一个 Vue 实例被创建时,它将 data 对象中的所有的 property 加入到 Vue 的响应式系统中。当这些 property 的值发生改变时,视图将会产生“响应”,即匹配更新为新的值。 <!DOCTYPE html> <html> <head> <meta charset=" 阅读全文
posted @ 2021-12-17 15:31 漫漫长路</> 阅读(45) 评论(0) 推荐(0)
摘要: vue官网介绍里面的练习 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <script src="./js/vue.min.js"></script> </head> <body> <div id="app" 阅读全文
posted @ 2021-12-17 14:35 漫漫长路</> 阅读(97) 评论(0) 推荐(0)