当前位置:网站首页>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>
边栏推荐
- 新版国标GB28181视频平台EasyGBS如何配置WebRTC视频流格式播放?
- IPv4地址、子网掩码、网关
- Native JS creates a calendar - supports mouse wheel scrolling to select months - and can be ported to any framework
- [untitled]
- Task: denial of service DOS
- Compile ffmpeg source code with msys+vs2019 under win10
- Learning notes [Gumbel softmax]
- Introduction and installation of crunch, and making password dictionary with crunch
- Learning records of building thingsboard, an Internet of things platform
- [go ~ 0 to 1] day 4 June 30 defer, structure, method
猜你喜欢
AAAI2020: Real-time Scene Text Detection with Differentiable Binarization
Summary of SQL query de duplication statistics methods
Uni app wechat applet one click login to obtain permission function
P2433 【深基1-2】小学数学 N 合一
AAAI2020: Real-time Scene Text Detection with Differentiable Binarization
产品模块化设计的前世今生
uni-app微信小程序一键登录获取权限功能
精耕渠道共谋发展 福昕携手伟仕佳杰开展新产品培训大会
任务:拒绝服务DoS
论文阅读【Discriminative Latent Semantic Graph for Video Captioning】
随机推荐
OpenCV视频质量检测--清晰度检测
正则表达式=Regex=regular expression
Wechat applet navigator has a shadow after clicking. Remove the shadow effect of navigator
Ubuntu14 install MySQL and configure root account local and remote access
【AI服务器搭建】CUDA环境
Facebook聊单,SaleSmartly有妙招!
白盒加密技术浅理解
mysql 报错 Can‘t create table ‘demo01.tb_Student‘ (errno: 150)*
Opencv video quality diagnosis - VIDEO occlusion diagnosis
GB28181之SIP协议
[go ~ 0 to 1] day 5 July 1 type alias, custom type, interface, package and initialization function
Collation of open source protocols of open source frameworks commonly used in Web Development
Simplified pinduoduo product data
Flutter 实战-快速实现音视频通话应用
原生js打造日程表-支持鼠标滚轮滚动选择月份-可以移植到任何框架中
Dom4j parsing XML, XPath retrieving XML
Why has instagram changed from a content sharing platform to a marketing tool? How do independent sellers use this tool?
AAAI2020: Real-time Scene Text Detection with Differentiable Binarization
简版拼多多商品数据
产品模块化设计的前世今生