您还需要统计数组中的元素个数,并将其保存在变量 $numstories 中。
You also need to count the number of elements in the array and use a variable $numstories to contain the result.
count 函数统计数组中的元素个数,所以在本例中 $elems 应该等于3。
The count function counts the number of elements in an array, so you would expect $elems to equal 3 in the example.
这些 XHR 对象保存在一个数组内,数组为每个表单分配一个数组元素。
The XHR objects are kept in an array that allocates one element for each form.
应用推荐