TypeError: Cannot read property of undefined (read 'day')
P粉276064178
P粉276064178 2024-03-31 20:14:08
0
1
436

<div class="cont">
    <ul>
        <li v-for="(value, key) in dayappointment.visit" :key="value">
            {{ key }}: {{ value }}
        </li>
    </ul>
    <div class="day">
        <div class="dayboxes">
            {{dayappointment.visit.day}}
        </div>
        <div class="dayboxes">
            {{dayappointment.visit.month}}
        </div>
        <div class="dayboxes">
            {{dayappointment.visit.year}}
        </div>
    </div>
</div>

The unordered list shows the day, month, year keys and their values, but they are undefined in the day div.

P粉276064178
P粉276064178

reply all(1)
P粉133321839
**somehow what was needed was to iterate the object like this**              
   
{{value}}
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!