加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Vue2 模板template的四种写法总结

发布时间:2020-12-17 02:34:20 所属栏目:百科 来源:网络整理
导读:如下所示: 我是直接写在构造器里的模板1 template id="demo3" h1 style="color:red"我是选项模板3 script type="x-template" id="demo4" h1 style="color:red"我是script标签模板4 推荐第4种。 以上这篇Vue2 模板template的四种写法总结就是小编分享给大家

如下所示:

我是直接写在构造器里的模板1

<template id="demo3">
<h1 style="color:red">我是选项模板3

<script type="x-template" id="demo4">
<h1 style="color:red">我是script标签模板4

推荐第4种。

以上这篇Vue2 模板template的四种写法总结就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持编程之家。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读