Menu
×
   ❮   
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE
     ❯   

Vue 指令


Vue 有一组指令。

指令 描述
v-bind 将属性绑定到数据属性
v-cloak 隐藏未编译的模板,直到它准备就绪
v-for 渲染元素列表
v-html 在模板中输出 HTML 代码
v-if 有条件地渲染元素
v-else-if 当 if 语句的第一部分为假时,有条件地渲染元素
v-else 当 if 语句的第一部分为假时,渲染元素
v-memo 在检测到一个或多个指定属性发生更改之前,暂缓渲染元素
v-model 在输入元素和相应的数据属性之间创建双向绑定
v-on 将事件连接到操作
v-once 仅渲染元素一次
v-pre 跳过元素及其内容的编译
v-show 有条件地切换元素的可见性
v-slot 将内容定向到命名插槽
v-text 更新元素的文本内容

×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
[email protected]

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
[email protected]

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.

Copyright 1999-2024 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.