๐Ÿ“’ [ TIL ] 2022.08.12_82์ผ์ฐจ # ์ตœ์ข… ํ”„๋กœ์ ํŠธ ๊ฐœ์„ (6)

๋ฌธ๋ช…์ฃผยท2022๋…„ 8์›” 12์ผ
0
post-thumbnail

[ 2022-08-12 (๊ธˆ) ์˜ค๋Š˜์˜ TIL ]

[ Today Project ]

drf ๋ฐฑ์—”๋“œ๊ฐœ๋ฐœ + ํ”„๋ก ํŠธ๊ฐœ๋ฐœ
: ์ด๋ฒˆ ํ”„๋กœ์ ํŠธ๋Š” ํŒ€ํ”„๋กœ์ ํŠธ๋กœ ์‹œ์ž‘ํ•ฉ๋‹ˆ๋‹ค.

[ Today Learn ]

ํ”ผ๋“œ๋ฐฑ ๋ฐ›์€๋ถ€๋ถ„ ๊ฐœ์„ ํ•˜๊ธฐ
1) ๋กœ๊ทธ์ธ ๋ฐ ๊ฒ€์ƒ‰์‹œ ์—”ํ„ฐ์ด๋ฒคํŠธ์ฒ˜๋ฆฌ
2) ๋งจ์œ„ ์ƒ๋‹จ์œผ๋กœ ์ด๋™ํ•  ์ˆ˜ ์žˆ๋Š” ๋ฒ„ํŠผ์ถ”๊ฐ€

โœ๏ธ ๋‚ด๊ฐ€ ๋ฐฐ์šด๊ฒƒ, ์–ป์€๊ฒƒ

* ๋กœ๊ทธ์ธ ๋ฐ ๊ฒ€์ƒ‰์‹œ ์—”ํ„ฐ ์ด๋ฒคํŠธ ์ฒ˜๋ฆฌ
1. ์ด๋ฒคํŠธ ๋ฐœ์ƒ ์‹œ ์ˆ˜ํ–‰ํ•  ํ•จ์ˆ˜๋ฅผ ์ž‘์„ฑ

function enterkey() {
	if (window.event.keyCode == 13) {
    	// ์—”ํ„ฐํ‚ค๊ฐ€ ๋ˆŒ๋ ธ์„ ๋•Œ
    }
}
  1. ์ด๋ฒคํŠธ ๋Œ€์ƒ์— ์ž‘์„ฑ
<div class="modal-body">
  <div class="form-floating mb-3">
    <input type="text" class="form-control" id="floatingloginID" placeholder="ID" onkeyup="loginkey()">
      <label for="floatingInput">ID</label>
</div>
<div class="form-floating mb-3">
  <input type="password" class="form-control" id="floatingloginPassword"
placeholder="Password" onkeyup="loginkey()">
  <label for="floatingPassword">๋น„๋ฐ€๋ฒˆํ˜ธ</label>
</div>
์•„์ง <a href="signup.html">๊ณ„์ •</a>์ด ์—†์œผ์‹œ๋‹ค๋ฉด?
</div>

* ๋งจ์œ„ ์ƒ๋‹จ์œผ๋กœ ์ด๋™ํ•  ์ˆ˜ ์žˆ๋Š” ๋ฒ„ํŠผ์ถ”๊ฐ€

<!-- ๋งจ์œ„๋กœ์ด๋™์‹œํ‚ค๋Š” ๋ฒ„ํŠผ -->
 <div class="top"> 
 	<img  style="cursor:pointer;" onclick="window.scrollTo(0,0);" src="../static/image/top.png">
 </div>

https://github.com/Moonmooj

profile
ํ•˜๋ฃจ ํ•œ๊ฑธ์Œ์”ฉ ๊พธ์ค€ํžˆ ๋‚˜์•„๊ฐ€๋Š” ๊ฐœ๋ฐœ์ž๐Ÿ™†โ€โ™€๏ธ https://github.com/Moonmooj

0๊ฐœ์˜ ๋Œ“๊ธ€

๊ด€๋ จ ์ฑ„์šฉ ์ •๋ณด