当前位置:网站首页>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>
边栏推荐
- 正则表达式=Regex=regular expression
- Interview questions for audio and video positions in Dachang -- today's headline
- CMU AI PhD 第一年总结
- 精耕渠道共謀發展 福昕攜手偉仕佳傑開展新產品培訓大會
- Thesis reading [distinctive late semantic graph for video capturing]
- 科技T3国产平台!成功搭载“翼辉国产实时系统SylixOS”
- Learning notes [Gumbel softmax]
- 对象的创建
- 118. Yanghui triangle
- 【org.slf4j.Logger中info()方法】
猜你喜欢

任务:拒绝服务DoS

商业智能BI开发和报表开发有什么本质区别?

118. Yanghui triangle
![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]

Shell advanced

What is the essential difference between Bi development and report development?

wireshark报文分析tcp,ftp

精耕渠道共谋发展 福昕携手伟仕佳杰开展新产品培训大会

Task: denial of service DOS

Wireshark packet analysis TCP, FTP
随机推荐
奔赴山海之前,毕业季一定要做的那些事情
【sql优化】with as 和 临时表的区别
原生js打造日程表-支持鼠标滚轮滚动选择月份-可以移植到任何框架中
Download (export) PDF template file (such as approval form), and report error: invalid nested tag * * * found, expected closing tag***
The intelligent epidemic prevention system provides safety guarantee for the resumption of work and production at the construction site
703. 数据流中的第 K 大元素
P2433 【深基1-2】小学数学 N 合一
Enabling "new Chinese enterprises", SAP process automation landing in China
GC垃圾回收
ES6中的代理proxy
Summary of SQL query de duplication statistics methods
Basic use of MySQL
Extensive reading of the paper [film: visual reasoning with a general condition layer]
研究了11种实时聊天软件,我发现都具备这些功能…
物联网平台thingsboard搭建学习记录
mysql 报错 Can‘t create table ‘demo01.tb_Student‘ (errno: 150)*
Shell advanced
Solidity - truncated and checked modes of arithmetic operations - new features of 0.8.0
Oracle物理体系结构
精耕渠道共謀發展 福昕攜手偉仕佳傑開展新產品培訓大會