Closed zhaoqinghuan closed 3 years ago
你使用的是 QueryList 那个版本?
你使用的是 QueryList 那个版本?
![]()
3.2.1
QueryList 3 版本已经不再维护了,目前的解决方法只能是你自己 fork 一份代码,然后去维护了
可以考虑重写each函数: function each(&$array){ $res = array(); $key = key($array); if($key !== null){ next($array); $res[1] = $res['value'] = $array[$key]; $res[0] = $res['key'] = $key; }else{ $res = false; } return $res; }
如题所示。
![image](https://user-images.githubusercontent.com/28949050/102453526-54a02780-4077-11eb-8dce-8bd5a98f2c80.png)