-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: counter system #1
base: HodaeSsi
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생많이하셨습니다!
<textarea cols="15" rows="1" class="outputNum" readonly>0</textarea> | ||
<br> | ||
<br> | ||
<input type="button" value="+" class="increaseButton"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
html태그속성들을 전부 id값이 아닌 class로 한 이유가 궁금합니다!
|
||
|
||
function decreaseButtonAction(e){ | ||
var temp = textarea_outputNum.textContent; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
변수명을 temp, temp2가 아닌 좀 더 의미가 분명한 변수명을 써주셨으면 좋겠습니다
@@ -0,0 +1,58 @@ | |||
const textarea_outputNum = document.querySelector("textarea.outputNum"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
querySelector는 어떤 방식으로 dom에 객체를 요청하는지 궁금합니다!
<meta charset = "utf-8"> | ||
</head> | ||
<body> | ||
<!-- <p>0</p> --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
사용하지 않는 코드는 제거해주세요
<input type="button" value="-" class="decreaseButton"> | ||
<br> | ||
<br> | ||
<p style="display:inline">step</p > |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
span
태그를 사용하지는 것이 더 적합한 것 같습니다.
No description provided.