当前位置:网站首页>转正菜鸟前进中的经验(废话)之谈 持续更新中... ...
转正菜鸟前进中的经验(废话)之谈 持续更新中... ...
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 中可以从标签上或者是插值表达式中,利用三元表达式,动态判断 不重复 的地方需要渲染的东西,这样可以节省很多代码。
边栏推荐
- 学习总结week3_1函数
- Database experiment five backup and recovery
- In Opencv, imag=cv2.cvtColor(imag,cv2.COLOR_BGR2GRAY) error: error:!_src.empty() in function 'cv::cvtColor'
- 2022牛客多校第四场C.Easy Counting Problem(EGF+NTT)
- SQL(二) —— join窗口函数视图
- 【过一下16】回顾一下七月
- Machine Learning (2) - Machine Learning Fundamentals
- 【NFT开发】设计师无技术基础保姆级开发NFT教程在Opensea上全套开发一个NFT项目+构建Web3网站
- day11-函数作业
- [Software Exam System Architect] Software Architecture Design ③ Domain-Specific Software Architecture (DSSA)
猜你喜欢

2022 Hangzhou Electric Multi-School 1st Session 01

数据库 单表查询

多线程查询结果,添加List集合

Wise Force Deleter强制删除工具

ESP32 485 Illuminance

CAP+BASE

Using pip to install third-party libraries in Pycharm fails to install: "Non-zero exit code (2)" solution

Qt produces 18 frames of Cupid to express his love, is it your Cupid!!!

SQL(一) —— 增删改查

Mesos学习
随机推荐
day6-列表作业
【过一下16】回顾一下七月
Dashboard Display | DataEase Look at China: Data Presents China's Capital Market
对数据排序
Matplotlib(二)—— 子图
ES6 Set、WeakSet
day12函数进阶作业
学习总结week3_3迭代器_模块
[Software Exam System Architect] Software Architecture Design ③ Domain-Specific Software Architecture (DSSA)
CAP+BASE
RL reinforcement learning summary (1)
OFDM Lecture 16 5 -Discrete Convolution, ISI and ICI on DMT/OFDM Systems
RDD和DataFrame和Dataset
Basic properties of binary tree + oj problem analysis
Matplotlib(三)—— 实践
range函数作用
Develop a highly fault-tolerant distributed system
【NFT开发】设计师无技术基础保姆级开发NFT教程在Opensea上全套开发一个NFT项目+构建Web3网站
Do you use tomatoes to supervise your peers?Add my study room, come on together
Lecture 2 Linear Model Linear Model