Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- 그릭요거트
- 광명파티룸
- 해외여행
- 스페이스우일
- 스컬킹점수계산
- 존경하는위인
- 부천파티룸
- 서울파티룸
- 옥길파티룸
- MBTI
- 옥길동요거트
- 일
- 보드게임점수계산
- 취미
- 휴식
- mysql
- 파티룸
- 가장존경하는인물
- 옥길요거트
- 착한코딩
- 옥길그릭요거트
- 스컬킹점수
- 스컬킹
- 구로파티룸
- 부천공간대여
- 웹개발
- 보드게임점수
- 코딩
- 개발자
- 옥길동파티룸
Archives
- Today
- Total
SIMPLE & UNIQUE
64 Q&A 본문
64번 예제에 대한 질문을 댓글로 남겨주세요.
import React, { Component } from 'react';
class R064_Promise extends Component {
componentDidMount(){
new Promise(resolve => {
setTimeout(function() {
resolve('react');
}, 1500);
})
.then(function(result) {
console.log(result);
return result + 200;
})
.then(result => {
console.log(result);
});//세미콜론 추가
};//세미콜론 추가
render() {
return (
<h1>Promise</h1>
)
}
};//세미콜론 추가
export default R064_Promise;
참고 링크
https://serpiko.tistory.com/609
자바스크립트 TypeError: (intermediate value)(intermediate value)(...) is not a function 에러
자바스크립트 TypeError: (intermediate value)(intermediate value)(...) is not a function 에러 즉시실행함수, 클로저 등을 사용할때에 아마도 다음과 같이 가장 가독성 좋은 문법형태로 많이 사용할 것이다...
serpiko.tistory.com
https://stackoverflow.com/questions/42036349/uncaught-typeerror-intermediate-value-is-not-a-function
Uncaught TypeError: (intermediate value)(...) is not a function
Everything works fine when I wrote the js logic in a closure as a single js file, as: (function(win){ //main logic here win.expose1 = .... win.expose2 = .... })(window) but when I try to
stackoverflow.com
Comments