当前位置:网站首页>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>
边栏推荐
- Solidity - contract structure - error - ^0.8.4 NEW
- JVM内存模型
- MFC中如何重绘CListCtrl的表头
- GB28181之SIP协议
- Collect Tiktok video
- [to.Net] C set class source code analysis
- After studying 11 kinds of real-time chat software, I found that they all have these functions
- Facebook聊单,SaleSmartly有妙招!
- AAAI2020: Real-time Scene Text Detection with Differentiable Binarization
- Why must we move from Devops to bizdevops?
猜你喜欢

JVM内存模型

SIP protocol of gb28181

Oracle物理体系结构

微信公众号开发相关流程及功能介绍

科技T3国产平台!成功搭载“翼辉国产实时系统SylixOS”

The use of subplot function in MATLAB

Detailed explanation of JUnit unit test framework

Facebook聊单,SaleSmartly有妙招!
![Extensive reading of the paper [film: visual reasoning with a general condition layer]](/img/69/f4ba37a7eae34a7e698127c31b0161.png)
Extensive reading of the paper [film: visual reasoning with a general condition layer]

Salesmartly has some tricks for Facebook chat!
随机推荐
Enabling "new Chinese enterprises", SAP process automation landing in China
Basic use of MySQL
Ffmpeg error code
Witness the times! "The future of Renji collaboration has come" 2022 Hongji ecological partnership conference opens live broadcast reservation
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
Solidity - truncated and checked modes of arithmetic operations - new features of 0.8.0
[English grammar] Unit1 articles, nouns, pronouns and numerals
What must be done in graduation season before going to Shanhai
Analysis of GetMessage underlying mechanism
Werewolf killing strategy: do you think I'm easy to cheat? Who do we believe!
[Mori city] random talk on GIS data (I)
Summary of SQL query de duplication statistics methods
对象的创建
English grammar_ Adjective / adverb Level 3 - precautions
研究了11种实时聊天软件,我发现都具备这些功能…
为什么一定要从DevOps走向BizDevOps?
Ubuntu14 install MySQL and configure root account local and remote access
【To .NET】C#集合类源码解析
Why must we move from Devops to bizdevops?
Native JS creates a calendar - supports mouse wheel scrolling to select months - and can be ported to any framework