我正在通过控制器中的模式从mysql数据库中检索数据。因为有一个查询将运行多次,我必须将所有检索数据存储到一个数组中。我需要存储数据数据在以下提到的格式,而它没有发生。控制器代码 class subcontroller extends Controller public function Index(Request
当我在模型中提交表单时,我希望在数组$scope.lists = []中推送保存的项。$scope.lists在ListsController中,而我在ModalsController中有提交函数。scope.lists.push(response); <- Is it possible to access the lists from the ListsController inside this Modal'sController?scope访问Li