从数组中循环数据。问题是,循环创建了3个空表,猜测这是因为我调用了item。3次。如果我想要在不创建空表的情况下从数组中获取数据,我应该如何显示这些数据?我一直尝试在不使用v-for循环的情况下使用{{users.firstname}},但似乎不起作用。<table v-for="item in users"> <tr>
我试图使用VueJS 2来呈现一个简单的v-for,在这里,我希望循环变量表示我想要访问的属性。<div> this renders fine: a = {{ this['a'] }} </div> but this doesn't:
<script src="https://cdnjs.cloudflare.com/ajax