Home > Web Front-end > JS Tutorial > Text rendering with Vue.js

Text rendering with Vue.js

php中世界最好的语言
Release: 2018-03-13 13:58:27
Original
1553 people have browsed it

This time I will bring you Vue.js text rendering. What are the precautions for using Vue.js text rendering? Here is the actual combat Let’s take a look at the case.

<template>
  <div id="myapp">
    <p v-text="hello"></p>
    <p v-html="hello"></p>
    <p>{{num+1}}</p>
    {{status ? &#39;success&#39; : &#39;fail&#39;}}  </div></template><script>
  export default {    data: function () {      return {        hello: &#39;<span>你是猴子请来的逗比吗?</span>&#39;,        num: 1,        status: true
      }
    }
  }</script>
Copy after login

Text rendering with Vue.js

I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the php Chinese website!

Recommended reading:

What are the precautions when using Vue.js

In-depth JavaScript movement of JS

In-depth advanced application of DOM in JavaScript

The above is the detailed content of Text rendering with Vue.js. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template