当前位置:网站首页>转正菜鸟前进中的经验(废话)之谈 持续更新中... ...
转正菜鸟前进中的经验(废话)之谈 持续更新中... ...
2022-08-05 05:13:00 【转正开始写博客!】
首先,关于这篇文章的小序我简单阐述一下,主要写一些在平时工作中的疑惑,和看法,或者是比较小巧点的经验和技巧吧,持续的更新,欢迎收藏随时来共同学习吧
*我会在每次的标题上加上相应的日期以便参考回溯 *
笨方法
<a-modal width="900px" v-model="visible" :footer="null">
<center slot="title" v-if="this.noticeType==1"><a-tag color="red">通知</a-tag>{
{ noticeTitle }}</center>
<center slot="title" v-if="this.noticeType==2"><a-tag color="red">公告</a-tag>{
{ noticeTitle }}</center>
<div v-html="noticeContent"></div>
</a-modal>
进阶方法
<a-modal width="900px" v-model="visible" :footer="null">
<center slot="title"><a-tag color="red">{
{ this.noticeType==1?"通知":"公告" }}</a-tag>{
{ noticeTitle }}</center>
<!-- <center slot="title" v-if="this.noticeType==2"><a-tag color="red">公告</a-tag>{
{ noticeTitle }}</center> -->
<div v-html="noticeContent"></div>
</a-modal>
总结:在 vue 中可以从标签上或者是插值表达式中,利用三元表达式,动态判断 不重复 的地方需要渲染的东西,这样可以节省很多代码。
边栏推荐
猜你喜欢
Structured light 3D reconstruction (1) Striped structured light 3D reconstruction
coppercam入门手册[6]
day10-字符串作业
Wise Force Deleter强制删除工具
OFDM Lecture 16 5 -Discrete Convolution, ISI and ICI on DMT/OFDM Systems
Error creating bean with name 'configDataContextRefresher' defined in class path resource
Detailed Explanation of Redis Sentinel Mode Configuration File
解决端口占用问题
The mall background management system based on Web design and implementation
【Transfer】What is etcd
随机推荐
Distributed and Clustered
Error creating bean with name 'configDataContextRefresher' defined in class path resource
【过一下7】全连接神经网络视频第一节的笔记
Difference between for..in and for..of
redis 持久化
Lecture 4 Backpropagation Essays
day8字典作业
redis persistence
Flutter real machine running and simulator running
ES6 生成器
【Reading】Long-term update
day10-字符串作业
【过一下 17】pytorch 改写 keras
【过一下10】sklearn使用记录
In Opencv, imag=cv2.cvtColor(imag,cv2.COLOR_BGR2GRAY) error: error:!_src.empty() in function 'cv::cvtColor'
多线程查询结果,添加List集合
[Let's pass 14] A day in the study room
Mesos学习
2023 International Conference on Information and Communication Engineering (JCICE 2023)
ES6基础语法