首页 > 解决方案 > VUE JS中如何根据范围获取数据

问题描述

我是 Vue Js 的新手,我想在 Vue.js 的下面数组中获取单个对象。假设 My Total Member = 5那么我想根据tour_member_mintour_member_max匹配并获取对象并获取单个对象。或Total Member = 20 或更大的 20 获取最后一个对象

[
0: {

    full_day_price: 1000
    half_day_price: 500
    tour_member_max: 5
    tour_member_min: 1

}
1: {full_day_price: 2000
    half_day_price: 1500
    tour_member_max: 6
    tour_member_min: 15
}
2: {
    full_day_price: 3000
    half_day_price: 2000
    tour_member_max: 16
    tour_member_min: 20
}
]

标签: vue.js

解决方案


推荐阅读