当前位置:网站首页>JS ternary expression complex condition judgment
JS ternary expression complex condition judgment
2022-07-01 19:40:00 【Goody red dust】
<template>
<div>
<!-- <span v-for="item in demoArry" :key="item.id" >{
{
item.name ? " Yes ":" nothing "}}</span> -->
<div v-for="(item,index) in demoArry" :key=index >{
{
item.name=="1" ? " To audit ":item.name=="2" ? " to examine ":item.name=="3" ? " nucleus ":item.name=="4" ? " Love ":''}}</div>
<!-- <div v-for="(item,index) in demoArry" :key=index >{
{
item.name=="1" ? " To audit " :(item.name=="2" ? " to examine ":(item.name=="3" ? " nucleus ":''))}}</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>
边栏推荐
- Audio and video, encoding and decoding related e-books, gadgets, packaged for free!
- 简版拼多多商品数据
- MySQl的基本使用
- CMU AI PhD first year summary
- 微信小程序 navigator点击后有阴影 ,去掉navigator阴影效果
- Uni app product classification
- Dom4j parsing XML, XPath retrieving XML
- A brief understanding of white box encryption technology
- 博途V16 获取系统时间转换成字符串
- GC垃圾回收
猜你喜欢
wireshark报文分析tcp,ftp
微信公众号开发相关流程及功能介绍
118. Yanghui triangle
sql查询去重统计的方法总结
pickle. Load error [attributeerror: can't get attribute 'volatile' on < module '\u main']
uni-app微信小程序一键登录获取权限功能
Native JS creates a calendar - supports mouse wheel scrolling to select months - and can be ported to any framework
精耕渠道共谋发展 福昕携手伟仕佳杰开展新产品培训大会
Test self-study people must see: how to find test items in software testing?
What is the essential difference between Bi development and report development?
随机推荐
Optimization of video streaming with repeated requests in the case of unstable easygbs network
下载(导出)pdf模板文件(比如:审批单),报错:Invalid nested tag *** found, expected closing tag ***
数字化转型企业成功的关键,用数据创造价值
nacos启动失败问题解决与总结
DDR4 test-2
AAAI2020: Real-time Scene Text Detection with Differentiable Binarization
Botu V16 obtains the system time and converts it into a string
GC垃圾回收
Ubuntu14 install MySQL and configure root account local and remote access
Instagram 为何从内容共享平台变成营销工具?独立站卖家如何利用该工具?
白盒加密技术浅理解
DTD modeling
The key to the success of digital transformation enterprises is to create value with data
703. The k-th element in the data flow
SIP protocol of gb28181
JVM内存模型
微信公众号开发相关流程及功能介绍
CMU AI PhD 第一年总结
Test self-study people must see: how to find test items in software testing?
科技T3国产平台!成功搭载“翼辉国产实时系统SylixOS”