当前位置:网站首页>(3)数据绑定指令
(3)数据绑定指令
2022-06-09 04:08:00 【liuyang___】
v-text 填充纯文本
相比插值表达式更简洁
v-html填充html片段
存在安全问题
本网站内部数据可以使用,来自第三方的数据不可以用
v-pre填充原始信息
显示原始信息,跳过编译过程(分析编译过程)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script type="text/javascript" src="vue.min.js"></script>
</head>
<body>
<div id="app">
<div v-cloak>{
{msg}}</div>
<div v-text="msg"></div>
<div v-html="msg1"></div>
<div v-pre>{
{msg}}</div>
</div>
<script>
var vm = new Vue({
el:'#app',
data:{
msg:'hello vue',
msg1:'<h1>html</h1>'
}
})
</script>
</body>
</html>

边栏推荐
- The talent gap is more than 500000, and the average salary is 20K? Network security, the next outlet for testers~
- How to write a blueprint for the data center
- [从零开始学习FPGA编程-14]:快速入门篇 - 操作步骤3(功能仿真)-3-modelsim快速使用入门(8bits循环计数器)
- 1264_ Analysis of FreeRTOS task initialization and stack initialization processing
- What do complex queries mean and include
- 从刚入测试界到薪资翻倍:聊聊我的测试进阶历程,值得借鉴
- 17billion parameters, 28 open test sets SOTA, the industry's largest unified visual multi task model
- Hisi3559av100, Mipi camera input interface debugging
- 音频功率放大电路(使用过的语音方案电路记录)
- Implementation of horizontal and vertical center of unknown width and height elements
猜你喜欢

基于PyQt5完成的图转文功能

Software testing (II)

170亿参数,28项公开测试集SOTA,行业最大的视觉多任务统一大模型来了

OnlineJudge instructions

Attention OCR Chinese version mas ter code running logic

Pdf splitting based on pyqt5

GC log analysis

17billion parameters, 28 open test sets SOTA, the industry's largest unified visual multi task model

状态模式模拟电梯运行

强烈推荐这款神器,一行命令将网页转PDF!
随机推荐
call apply bind 的作用和区别
Rigidbody2d rotate around a fixed point rotate
[excellent design] opencv based face recognition punch in / sign in / attendance management system (the simplest basic library development, which can be based on raspberry pie)
Assembly: CPU structure - flag register and related instructions
golang ---image--热力图与照片的重叠
golang---各个类型变量的比较运算
JVM memory view and setting ideas
基于PyQt5完成的图转文功能
JVM面试
Dart:基础
Golang --- comparison operation of various types of variables
App上看到就忍不住点的小红点是如何实现的?
lua 字符串
Rich color changes
170亿参数,28项公开测试集SOTA,行业最大的视觉多任务统一大模型来了
Noc-sla acquisition C-side business monitoring practice
Pdf merge based on pyqt5
Binary processing of opcv image
Common port record
Kotlin基础从入门到进阶系列讲解(入门篇) 文件存储的基本使用