Vue中的内置指令
摘要:1.v-text 作用是:向其所在的节点中渲染文本内容 //与插值语法的区别:v-text会替换掉节点中的全部数据 {{xxx}} 不会 const str = '我是一个字符串' <div v-text='str'></div> //展示我是一个字符串 不能进行dome元素的解析 2.v-html
阅读全文
posted @ 2023-01-10 17:04
posted @ 2023-01-10 17:04
posted @ 2023-01-10 15:15
posted @ 2023-01-06 10:25
posted @ 2023-01-06 09:54
posted @ 2023-01-06 09:27