반응형
Uncaught SyntaxError: Invalid shorthand property initializer
자바스크립트 사용 중 위와 같은 에러가 발생했는데
내용을 확인해보니 코드를 아래처럼 짜 놨었더라
let model = {
requestDto = data,
comment = $("#comment”).val()
};
여기서 변수 안에 = 로 입력한 부분을
인식하지 못해 발생한 에러인데
: 로 바꿔주면 간단히 해결이 된다
반응형
'Error & Fix' 카테고리의 다른 글
ajax Uncaught TypeError: Cannot read properties of undefined (reading 'toLowerCase’) 에러 해결방법 (0) | 2022.02.08 |
---|---|
Could not determine type for: com.google.gson.JsonArray 에러 해결방법 (0) | 2022.02.08 |
Using tabs can lead to unpredictable results 해결방법 (0) | 2022.01.11 |
MySQL JSON_CONTAINS 호출 에러 해결방법 (0) | 2022.01.10 |
JPA The given id must not be null! 에러 해결방법 (0) | 2022.01.10 |
댓글