커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
파이참에 함수 입력했는데 기능 작동이 안되는것같아요
undefined주차
북마크
김*우
댓글
21
추천
0
조회수
25
조회수
25
답변 완료

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.


function 함수를 입력했는데 색깔도 안바뀌고 기능도 구현이 안되네요



스파르타 즉문즉답





<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <script>
        function hey (){
$.ajax({
type: "GET",
url: "/test?title_give=봄날은간다",
data: {},
success: function(response){
console.log(response)
}
})
        }
    </script>
</head>
<body>
    <h1>나의 첫 웹페이지!</h1>
    <button onclick="hey()">버튼을 만들자!</button>
</body>
</html>

/Users/user/Desktop/sparta/projects/prac/venv/bin/python /Users/user/Desktop/sparta/projects/prac/app.py

 * Serving Flask app 'app'

 * Debug mode: on

WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.

 * Running on all addresses (0.0.0.0)

 * Running on http://127.0.0.1:5000

 * Running on http://172.30.1.76:5000

Press CTRL+C to quit

 * Restarting with stat

 * Debugger is active!

 * Debugger PIN: 124-849-129

127.0.0.1 - - [21/Dec/2022 12:10:15] "GET / HTTP/1.1" 200 -



취소
 공유
취소
댓글 0
댓글 알림
나의얼굴