v-for
Official documentation, from which we can see that v-for in Vue is used for arrays and objects. Loop over number numbers directly is not supported.
In practice, vue V-for loops numbers directly, that is, fixed times. Such as star rating. In order to operate simple, direct Baidu, a small partner for us to provide the following methodsV -for star rating, the screenshot is as follows.
πππ, problem solved perfectly. Online, π©π©π©, ios white screen, no display, π π©π©
Ios error
For the above problems, we conducted joint investigation and found that RangeError was reported in the IOS system. Array size is not a small enough positive INTEGER (baidu display: Some Android models have the same problem, the actual test did not encounter)
The size of the array is illegal
Vue’s v-for loop is used for arrays and objects. It does not support the operation of fixed numbers. Too great a price to pay for a moment’s convenience, full of tears, πππ
The Date object in JavaScript is a pit in IOS.