Page 394 - Nodejs 교과서 개정2판
P. 394
{% block script %}
<script>
window.onload = () => {
if (new URL(location.href).searchParams.get('error')) {
alert('이미 존재하는 이메일입니다.');
}
};
</script>
{% endblock %}
KPJO IUNM ഥਗоੑೞח ಬਸ ࠁৈસפ
views/error.html
{% extends 'layout.html' %}
{% block content %}
<h1>{{message}}</h1>
<h2>{{error.status}}</h2>
<pre>{{error.stack}}</pre>
{% endblock %}
FSSPS IUNM ࢲߡী ী۞о ߊࢤ೮ਸ ٸ ী۞ ղਸ ࠁৈસפ ী۞ח ࣛ۽ ࠊب غ݅ ࠳ۄ ചݶਵ
۽ ࠁݶ ખ ؊ ಞܻפ ױ ߓನ दীח ী۞ ղਊਸ ࠁৈ ঋח ѱ ࠁউ࢚ જणפ
݄݃ਵ۽ ٣ੋਸ ਤೠ $44 ੌੑפ
public/main.css
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
.btn {
display: inline-block;
padding: 0 5px;
text-decoration: none;
cursor: pointer;
border-radius: 4px;
background: white;
border: 1px solid silver;
color: crimson;
height: 37px;
line-height: 37px;
vertical-align: top;
font-size: 12px;