<!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)
When using vue to develop projects, the front end...
Preface I have always wanted to know how a SQL st...
This article records the installation and configu...
To achieve an effect similar to Windows forms, dr...
We all know the drag-and-drop feature of HTML5, w...
1. Application of multimedia in HTML_falsh animat...
When you start working on a project, it’s importa...
1. Download VMware Workstation 64 version https:/...
The database I use is MySQL database version 5.7 ...
<br />Based on the original width-and-height...
“Inputs should be divided into logical groups so ...
This article introduces 5 ways to solve the 1px b...
Today I got familiar with the mouse zooming effect...
To do MySQL performance adjustment and service st...
1. Inline style, placed in <body></body&g...