当前位置:网站首页>转正菜鸟前进中的经验(废话)之谈 持续更新中... ...
转正菜鸟前进中的经验(废话)之谈 持续更新中... ...
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 (2) Line Structured Light 3D Reconstruction
- 第5讲 使用pytorch实现线性回归
- redis复制机制
- coppercam primer [6]
- phone call function
- Lecture 2 Linear Model Linear Model
- 数据库 单表查询
- 【过一下7】全连接神经网络视频第一节的笔记
- redis事务
- Error creating bean with name 'configDataContextRefresher' defined in class path resource
猜你喜欢

SQL(二) —— join窗口函数视图

Detailed Explanation of Redis Sentinel Mode Configuration File

第5讲 使用pytorch实现线性回归

vscode+pytorch使用经验记录(个人记录+不定时更新)

Using QR codes to solve fixed asset management challenges

OFDM 十六讲 5 -Discrete Convolution, ISI and ICI on DMT/OFDM Systems
![[Let's pass 14] A day in the study room](/img/fc/ff4161db8ed13a0c8ef75b066b8eab.png)
[Let's pass 14] A day in the study room

The mall background management system based on Web design and implementation

Pycharm中使用pip安装第三方库安装失败:“Non-zero exit code (2)“的解决方法

Error creating bean with name 'configDataContextRefresher' defined in class path resource
随机推荐
【NFT开发】设计师无技术基础保姆级开发NFT教程在Opensea上全套开发一个NFT项目+构建Web3网站
【过一下4】09-10_经典网络解析
entry point injection
redis 持久化
Wise Force Deleter强制删除工具
鼠标放上去变成销售效果
「PHP8入门指南」PHP简明介绍
Transformation 和 Action 常用算子
【过一下15】学习 lstm的一周
OFDM 十六讲 5 -Discrete Convolution, ISI and ICI on DMT/OFDM Systems
UVA10827
位运算符与逻辑运算符的区别
学习总结week3_3迭代器_模块
Multi-threaded query results, add List collection
[Go through 7] Notes from the first section of the fully connected neural network video
ES6 生成器
Analysis of Mvi Architecture
pycharm中调用Matlab配置:No module named ‘matlab.engine‘; ‘matlab‘ is not a package
day10-字符串作业
Requests the library deployment and common function