<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <div id="app"> <p>Good morning {{info}}</p> <p v-text="info">Good morning</p> <p v-html="info">Good morning</p> <hr> <p v-text="addr">hhh</p> <p v-html="addr">hhh</p> <hr> <p v-text="addr2">hhh</p> <p v-html="addr2">hhh</p> </div> </body> </html> <script src="js/vue.js"></script> <script> new Vue({ el:"#app", data:{ info:"good", addr:"<a href='https://www.baidu.com'>Click to enter Baidu</a>", addr2:'<a href="https://www.baidu.com" rel="external nofollow" >Baidu</a>' } }); </script> This is the end of this article about the differences and applications of {{}}, v-text and v-html in vue. For more relevant content about the differences and applications of {{}}, v-text and v-html in vue, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Detailed explanation of building MySQL master-slave environment with Docker
>>: Solve the problem of Navicat importing database data structure sql reporting error datetime(0)
Table of contents Overview Object rest attribute ...
This article shares the specific code of vue elem...
HTML comment box with emoticons. The emoticons ar...
Table of contents Join syntax: 1. InnerJOIN: (Inn...
Table of contents 1. What is a custom instruction...
MySQL Create Database After logging into the MySQ...
1. First, the pure HTML file must have an entry i...
1. Download and decompress 1. Introduction to Zoo...
After VMware is abnormally shut down, it prompts ...
EXPLAIN shows how MySQL uses indexes to process s...
What is serdel userdel is a low-level tool for de...
1. Problem symptoms Version: MySQL 5.6, using the...
ElasticSearch cluster supports動態請求的方式and靜態配置文件to ...
The first step is to prepare an icon making softwa...
The /etc/network/interfaces file in Linux is used...