当前位置:网站首页>转正菜鸟前进中的经验(废话)之谈 持续更新中... ...
转正菜鸟前进中的经验(废话)之谈 持续更新中... ...
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 中可以从标签上或者是插值表达式中,利用三元表达式,动态判断 不重复 的地方需要渲染的东西,这样可以节省很多代码。
边栏推荐
- Wise Force Deleter强制删除工具
- el-table鼠标移入表格改变显示背景色
- 分布式和集群
- What are the characteristics of the interface of the physical layer?What does each contain?
- RL reinforcement learning summary (1)
- ES6 生成器
- 【过一下9】卷积
- Dashboard Display | DataEase Look at China: Data Presents China's Capital Market
- NodeJs接收上传文件并自定义保存路径
- entry point injection
猜你喜欢

RL reinforcement learning summary (1)

Calling Matlab configuration in pycharm: No module named 'matlab.engine'; 'matlab' is not a package

【NFT开发】设计师无技术基础保姆级开发NFT教程在Opensea上全套开发一个NFT项目+构建Web3网站

The underlying mechanism of the class

Multi-threaded query results, add List collection
![[Go through 3] Convolution & Image Noise & Edge & Texture](/img/7b/2214020cadf06d9211fd40fb5f1b63.png)
[Go through 3] Convolution & Image Noise & Edge & Texture

【After a while 6】Machine vision video 【After a while 2 was squeezed out】

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

ESP32 485 Illuminance

vscode+pytorch使用经验记录(个人记录+不定时更新)
随机推荐
phone call function
浅谈Servlet生命周期
uva1325
redis 缓存清除策略
【技能】长期更新
Lecture 4 Backpropagation Essays
The difference between span tag and p
Difference between for..in and for..of
Database experiment five backup and recovery
1.3 mysql批量插入数据
Lecture 2 Linear Model Linear Model
第二讲 Linear Model 线性模型
02.01-----参数的引用的作用“ & ”
ES6 Set、WeakSet
The software design experiment four bridge model experiment
实现跨域的几种方式
What are the characteristics of the interface of the physical layer?What does each contain?
2023 International Conference on Information and Communication Engineering (JCICE 2023)
OFDM 十六讲 5 -Discrete Convolution, ISI and ICI on DMT/OFDM Systems
In Opencv, imag=cv2.cvtColor(imag,cv2.COLOR_BGR2GRAY) error: error:!_src.empty() in function 'cv::cvtColor'