当前位置:网站首页>转正菜鸟前进中的经验(废话)之谈 持续更新中... ...
转正菜鸟前进中的经验(废话)之谈 持续更新中... ...
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 中可以从标签上或者是插值表达式中,利用三元表达式,动态判断 不重复 的地方需要渲染的东西,这样可以节省很多代码。
边栏推荐
- Difference between for..in and for..of
- [Go through 3] Convolution & Image Noise & Edge & Texture
- 1.3 mysql batch insert data
- 软件设计 实验四 桥接模式实验
- 【过一下7】全连接神经网络视频第一节的笔记
- js实现数组去重
- Pycharm中使用pip安装第三方库安装失败:“Non-zero exit code (2)“的解决方法
- Structured light 3D reconstruction (1) Striped structured light 3D reconstruction
- Convert the paper official seal in the form of a photo into an electronic official seal (no need to download ps)
- Matplotlib(一)—— 基础
猜你喜欢

数据库 单表查询

软件设计 实验四 桥接模式实验

Basic properties of binary tree + oj problem analysis

【过一下12】整整一星期没记录

数据库实验五 备份与恢复

Algorithms - ones and zeros (Kotlin)

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

【过一下3】卷积&图像噪音&边缘&纹理
![[Student Graduation Project] Design and Implementation of the Website Based on the Web Student Information Management System (13 pages)](/img/86/9c9a2541f2b7089ae47e9832fffdb3.png)
[Student Graduation Project] Design and Implementation of the Website Based on the Web Student Information Management System (13 pages)

Lecture 4 Backpropagation Essays
随机推荐
Difference between for..in and for..of
机器学习(二) —— 机器学习基础
Calling Matlab configuration in pycharm: No module named 'matlab.engine'; 'matlab' is not a package
JSX基础
Database experiment five backup and recovery
【记一下1】2022年6月29日 哥和弟 双重痛苦
The difference between span tag and p
2022 Hangzhou Electric Multi-School 1st Session 01
【技能】长期更新
Redux
【Over 16】Looking back at July
Matplotlib(一)—— 基础
Geek卸载工具
day6-列表作业
day8字典作业
Mesos学习
A blog clears the Redis technology stack
Flutter real machine running and simulator running
有用番茄来监督自己的同道中人吗?加一下我的自习室,一起加油
第四讲 反向传播随笔