腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
Angular
2-
Http
Post
返回
未定义
的
错误
、
创建用户
的
一部分是为他们提供对某些数据库
的
访问。 create(newUser: Users) { return this.
http
.
post
(this.config.apiUrl + '/api/accounts/createnewUserToDatabases: UserDatabase
浏览 1
提问于2017-07-21
得票数 0
1
回答
一个工厂可以
返回
多个promises吗?
angular
.module('mymodule', [ .controller('myController', [ functionmyModel', [ function($scope) { ]); 然后在你
的
路由文件中有没有办法向m
浏览 0
提问于2013-10-04
得票数 0
1
回答
为什么功能不还承诺‘不能读取属性’那么‘
的
未定义
’?
正在出现此
错误
,“无法读取属性”,然后“
未定义
”,我想知道为什么工厂不
返回
对象。主计长: .module('sfcMachinesFieldDefinitions') .controller('MachinesListController', ['$translate', '$
http
', '$scope', '$state', 'ListOf
浏览 4
提问于2017-10-01
得票数 1
回答已采纳
1
回答
php- android中
未定义
的
索引
错误
、
、
在运行此函数时,我在本地主机浏览器上得到了这个
未定义
的
索引
错误
,并在我
的
应用程序上获得了无效
的
ip地址。注意:
未定义
索引:第10行C:\xampp\htdocs\prateek\insert.php中
的
名称 注意:
未定义
的
索引:第11行C:\xampp\htdocs\prateek\insert.php中
的
性别注意:第12行C:\xampp\htdocs\prateek\insert.php中
的
<e
浏览 4
提问于2015-08-18
得票数 0
1
回答
Ionic 3
Post
to REST API (Swagger)
、
、
此端点接受文本并
返回
JSON。
错误
My REST Providerimport { HttpClient } from '@
angular
/common/
http
'; im
浏览 43
提问于2018-06-03
得票数 1
回答已采纳
2
回答
以角度表示
未定义
的
服务
、
、
我已经编写了一个服务,它将把图像上传到服务器,并且我正在使用来自控制器
的
服务,但在服务调用时显示了在服务中定义
的
未定义
的
功能。
错误
类似于这个“无法读取
未定义
的
”
的
属性'uploadFileToUrl‘。这里是我
的
代码 this.upl
浏览 0
提问于2017-10-10
得票数 2
回答已采纳
2
回答
Angular
$
http
.
post
返回
404
错误
、
、
我正在使用
angular
JS发送一些数据到支付网关。根据文档,curl发送数据
的
语法为:-H "Content-type: application/x-www-form-urlencoded"-d 'TermUrl=https://www.yourmerchantsite.co.uk/3DSecureConfirmation&PaReq
浏览 11
提问于2018-01-22
得票数 1
1
回答
AngularJS "TypeError:当从web服务获取
post
数据时无法读取
未定义
的
属性‘协议’
、
、
这是我
的
密码。IsActive": true, } url: config.addPricing, method: "
POST
}).error(function(data){
浏览 2
提问于2015-04-25
得票数 0
回答已采纳
2
回答
Angular
- Factory
http
post
返回
未定义
的
值
、
、
我找了又研究,但我不能解决我
的
问题。我为
http
POST
创建了一个服务,我必须从我
的
控制器获取结果。serviceRicercaAttivita.getAttivita(parameters);服务this.getAttivita = function(arr) {
浏览 0
提问于2017-05-25
得票数 1
2
回答
Auth服务与登录组件不通信
、
、
、
、
我使用角4并试图从Auth
返回
一个布尔值,但是当我尝试console.log值时,它会
返回
未定义
的
值。login.component.tsimport { Component, OnInit/core
浏览 0
提问于2018-04-25
得票数 0
回答已采纳
2
回答
在角$
http
服务中,在
错误
情况下,所有参数都是不可违抗
的
。
我正在调用一个服务,在某些情况下它
返回
400个状态代码。在这种情况下,“onerror”中
的
所有参数都是
未定义
的
。这是我
的
密码: .success(function (response, status, headers, config) {}, function errorCallback(response) {
浏览 4
提问于2016-12-12
得票数 2
4
回答
对
Angular
2中
的
JSON对象使用*ngFor
、
、
、
我正在尝试实现一个解耦
的
wordpress解决方案,但是在我
的
模板中显示JSON对象属性时,我感到有点困惑。我可以为WP
返回
JSON对象,但不确定如何处理它们。我是
Angular
的
新手,在这件事上可能需要一些指导。谢谢!![ "id": 4, "date": &
浏览 2
提问于2016-08-23
得票数 0
1
回答
TypeError:无法读取
未定义
的
使用$
http
的
属性“成功”
、
、
、
、
我正在为
http
通信创建一个服务,我需要一些方法来
返回
一个值。但是当我称成功为成功时,我会得到一个类型
错误
;
angular
.module('myApp').controller('mainCtrl', function($scope, apiService){ apiService(&
浏览 3
提问于2015-07-30
得票数 1
1
回答
类型记录:未分配给类变量
的
数据
、
、
、
我正在使用
http
调用从后端获取数据。当数据被登录到浏览器控制台时,我可以看到数据从后端
返回
。但是数据没有分配给类变量。; constructor(private $
http
:
angular
.IHttpService, method : '
POST
', url :
浏览 0
提问于2017-05-20
得票数 1
回答已采纳
1
回答
Angular
2-
多个
HTTP
POST
请求:处理每个请求中
的
错误
我正在寻找一种方法,在其中我可以发布多个
HTTP
post
请求,以防其中一个或多个出现
错误
,然后我可以知道其中哪些得到了
错误
。 我尝试通过观察点实现了许多逻辑,但没有成功。请提个建议。
浏览 0
提问于2017-03-30
得票数 0
2
回答
将客户端
错误
日志转到服务器
我希望将客户端
的
角度
错误
记录到服务器,因此我遵循和堆栈溢出回答,并实现了一个服务,该服务提供了一个
http
调用服务器。目前,logError方法正在被击中,但是没有对服务器进行
http
调用。export class AngularLoggerService { console.log(error.stack); // line is printed
浏览 0
提问于2019-03-19
得票数 3
回答已采纳
3
回答
Angular
2/Web Api - json解析
错误
语法
错误
输入意外结束
、
、
、
API控制器,如下所示: public IHttpActionResult Test() return Ok();这是正确
的
语法,但是,当我尝试从
Angular
2中
的
服务调用它时,我得到了
错误
消息:"json parsing error语法error unexpected end of input“。我
的
Angular
2服务调用如下所示: return this.
http
.<e
浏览 2
提问于2016-03-02
得票数 30
回答已采纳
3
回答
角承诺响应检验
、
、
我正在以角度进行一些
http
调用,并试图在发生
错误
时调用不同
的
服务函数。然而,不管我
的
原始服务调用函数
返回
什么,它
返回
的
承诺总是“
未定义
”。method: '
POST
', data: applicant .success(function (data) { } $sc
浏览 3
提问于2015-11-11
得票数 1
回答已采纳
1
回答
角隐ReferenceError:服务
未定义
、
、
、
', function PhoneListController($
http
, authenticationService', function($
http
, $se){ $
http
.
post
('/o/token/
浏览 2
提问于2016-09-11
得票数 0
1
回答
带有订阅
的
角茉莉花测试填充阵列
、
、
、
我试图在一个简单
的
角度应用程序中测试异步函数。服务import {
Http
} from '@
angular
/
http
';import { HttpModule } from '@
angular
/
http
'; import
浏览 0
提问于2018-05-02
得票数 2
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
实时音视频
云直播
活动推荐
运营活动
广告
关闭
领券