当前位置:网站首页>js三元表达式复杂条件判断
js三元表达式复杂条件判断
2022-07-01 18:45:00 【古迪红尘】
<template>
<div>
<!-- <span v-for="item in demoArry" :key="item.id" >{
{
item.name ? "有":"无"}}</span> -->
<div v-for="(item,index) in demoArry" :key=index >{
{
item.name=="1" ? "待审核":item.name=="2" ? "审核":item.name=="3" ? "核":item.name=="4" ? "爱":''}}</div>
<!-- <div v-for="(item,index) in demoArry" :key=index >{
{
item.name=="1" ? "待审核" :(item.name=="2" ? "审核":(item.name=="3" ? "核":''))}}</div> -->
</div>
</template>
<script>
export default {
data () {
return {
demoArry: [
{
name: '1',
id: '111'
},
{
name: '2',
id: '222'
},
{
name: '3',
id: '333'
},
{
name: '4',
id: '444'
},
{
name: '5',
id: '444'
}
],
dataform: {
title: 'qq'
}
}
}
}
</script>
<style>
</style>
边栏推荐
- GB28181之SIP协议
- MFC中如何重绘CListCtrl的表头
- 精耕渠道共谋发展 福昕携手伟仕佳杰开展新产品培训大会
- Les canaux de culture intensive s'efforcent de développer Fu Xin et Wei Shi jiajie pour organiser une conférence de formation sur les nouveaux produits
- DDR4 test-2
- What must be done in graduation season before going to Shanhai
- 利用win7漏洞进行系统登录密码破解
- Brpc understanding
- Enabling "new Chinese enterprises", SAP process automation landing in China
- 118. 杨辉三角
猜你喜欢
Use the uni app demo provided by Huanxin to quickly realize one-on-one chat
pickle. Load error [attributeerror: can't get attribute 'volatile' on < module '\u main']
Uni app product classification
SIP protocol of gb28181
MySQl的基本使用
DTD建模
论文阅读【Discriminative Latent Semantic Graph for Video Captioning】
sql查询去重统计的方法总结
Ubuntu14 install MySQL and configure root account local and remote access
axure不显示元件库
随机推荐
ffmpeg 错误码
Botu V16 obtains the system time and converts it into a string
DDR4 test-2
Facebook聊单,SaleSmartly有妙招!
Solidity - truncated and checked modes of arithmetic operations - new features of 0.8.0
ffmpeg 音频相关命令
【sql优化】with as 和 临时表的区别
测试自学人必看:软件测试如何找测试项目?
直播HLS协议
Witness the times! "The future of Renji collaboration has come" 2022 Hongji ecological partnership conference opens live broadcast reservation
Instagram 为何从内容共享平台变成营销工具?独立站卖家如何利用该工具?
赋能「新型中国企业」,SAP Process Automation 落地中国
Oracle物理体系结构
Compile ffmpeg source code with msys+vs2019 under win10
数字化转型企业成功的关键,用数据创造价值
uni-app微信小程序一键登录获取权限功能
【org.slf4j.Logger中info()方法】
Contos 7 搭建sftp之创建用户、用户组以及删除用户
[Mori city] random talk on GIS data (I)
GetMessage底层机制分析