반응형

programing 371

Lodash가 React에서 작동하지 않음

Lodash가 React에서 작동하지 않음 먼저 코드를 확인하는 것이 가장 좋습니다. import React, { Component } from 'react'; import _ from 'lodash'; import Services from 'Services'; // Webservice calls export default class componentName extends Component { constructor(props) { super(props); this.state = { value: this.props.value || null } } onChange(value) { this.setState({ value }); // This doesn't call Services.setValue at all ..

programing 2023.03.16

angularjs 리소스로 페이지 매김과 카운트를 처리하는 방법

angularjs 리소스로 페이지 매김과 카운트를 처리하는 방법 다음과 같이 JSON을 출력하는 API용 angularjs 클라이언트를 구축해야 합니다. { "count": 10, "next": null, "previous": "http://site.tld/api/items/?start=4" "results": [ { "url": "http://site.tld/api/items/1.json", "title": "test", "description": "", "user": "http://site.tld/api/users/4.json", "creation_datetime": "2013-05-08T14:31:43.428" }, { "url": "http://site.tld/api/items/2.json", "..

programing 2023.03.11

REST API에 의해 JSON이 반환되는 경우 MIME 유형은 무엇입니까?

REST API에 의해 JSON이 반환되는 경우 MIME 유형은 무엇입니까? My REST API는 JSON을 반환합니다. 현재 MIME 타입으로 text/plain을 반송하고 있습니다만, 이상합니다.다시 올까요?application/x-javascript아니면 다른 타입인가요? 두 번째 질문은 오류 상태의 HTTP 상태 코드에 관한 것입니다.REST API가 오류 상태를 반환하는 경우 JSON으로 반환됩니다. { result: "fail", errorcode: 1024, errormesg: "That sucked. Try again!" } HTTP 상태 코드 유지 여부:200 OK?JSON 사양에 따르면application/jsonIETF 및 IANA 레지스트리에서 지원되는 것 같습니다. 두 번째 질문..

programing 2023.03.11

장애 발생 후 Internet Explorer가 Ajax 콜에서 HTTP Post Body를 전송하지 않는 이유는 무엇입니까?

장애 발생 후 Internet Explorer가 Ajax 콜에서 HTTP Post Body를 전송하지 않는 이유는 무엇입니까? 다음과 같은 시나리오를 확실하게 재현할 수 있습니다. 서버에 AJAX 요청을 하는 작은 HTML 페이지를 만듭니다(HTTP POST 사용). 네트워크 연결을 끊었다가 다시 연결합니다. 장애 발생 후 IE에서 생성되는 패킷을 모니터링합니다. 네트워크 접속에 실패하면 IE는 다음 AJAX 요구를 작성하지만 HTTP 포스트 실행 시 HTTP 헤더(본문이 아님)만 전송합니다.이로 인해 서버에 모든 종류의 문제가 발생합니다.이는 부분적인 요구이기 때문입니다.Bing에서 이 문제를 구글로 검색하면 AJAX를 사용하는 "랜덤 서버 오류" 또는 설명되지 않은 AJAX 장애에 대해 많은 사람들이..

programing 2023.03.11

스프링 부트:Password Encoder를 지정하는 방법

스프링 부트:Password Encoder를 지정하는 방법 현재 메인 수업을 받고 있습니다. package com.recweb.springboot; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication /*@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})*/ public class SpringbootApplication { public static void main(String[] args) { SpringApplication.ru..

programing 2023.03.11

드롭 다운 프로젝터js e2e 테스트에서 옵션을 선택하는 방법

드롭 다운 프로젝터js e2e 테스트에서 옵션을 선택하는 방법 나는 각도 e2e 테스트를 위해 드롭 다운에서 옵션을 선택하려고 한다. 다음은 선택 옵션의 코드 조각입니다. Ranjans Mobile Testing BeaverBox Testing BadgerBox CritterCase BoxLox BooBoBum 시도했습니다. ptor.findElement(protractor.By.css('select option:1')).click(); 이 경우 다음 오류가 발생합니다. 잘못된 문자열이 지정되었습니다. 빌드 정보: 버전: '2.35.0', 개정: 'c916b9d', 시간: '2013-08-12 15:42:01' 시스템 정보: os.name: 'Mac OS X', os.arch: 'x86_64', os.v..

programing 2023.03.11
반응형