AngularJS错误:请求的键的值不是对象.keys@[本地代码]

AngularJS Error: Requested keys of a value that is not an object. keys@[native code]

本文关键字:keys@ 对象 本地代码 错误 请求 AngularJS      更新时间:2023-09-26

我在移动浏览器和Safari上遇到了一个错误,该项目在chrome和firefox上正常工作,0个错误。

Error: Requested keys of a value that is not an object.keys @[native code]

我正在使用以下模块

'maticApp.controllers',
'maticApp.directives',
'checklist-model',
'ngRoute',
'ngCookies',
'ui.bootstrap'

我试图逐个文件删除以确定错误,但没有希望。这是该项目的链接http://matic.imenadigital.com/#/GetStarted

提前感谢

我能够重现错误, $http({ method:'GET', url: 'http://website.com/API', param: 'limit = 10, sort_by=created:desc' }).success(....

错误出现在params键中,您应该将其写成如下对象param: {limit : 10, sort_by: 'created:desc'

或者去掉它,它就会正常工作。