Toggle navigation
Toggle navigation
This project
Loading...
Sign in
LI WENHAO
/
kartrider
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김명주
2021-11-02 19:23:29 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5cdb8ae2b1d5806e06e292b26d191e66995aae18
5cdb8ae2
1 parent
88a9e12b
Create inf home, inf result html
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
0 deletions
views/inf_search_home.ejs
views/inf_search_result.ejs
views/inf_search_home.ejs
0 → 100644
View file @
5cdb8ae
<html>
<head>
<title>
TESTESTEST
</title>
<script
src=
"http://code.jquery.com/jquery-1.11.3.min.js"
></script>
<script
src=
"http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"
></script>
</head>
<body>
<input
type=
"text"
id=
"name"
/>
<input
type=
"submit"
onClick=
"location.href='result'"
id=
"OK"
/>
<script>
$
(
"#OK"
).
click
(
function
(){
// OK 버튼 클릭하면
$
.
ajax
({
url
:
'/inf/result'
,
// postTest 주소로
async
:
true
,
// 동기화 - 서버에서 반응이 올때까지 기다림
type
:
'POST'
,
// POST 방식으로
data
:
{
test
:
$
(
"#name"
).
val
()
// 텍스트필드에 입력한 값을 test라는 이름으로 보냄
},
dataType
:
'json'
});
});
</script>
</body>
</html>
\ No newline at end of file
views/inf_search_result.ejs
0 → 100644
View file @
5cdb8ae
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<title>
Hello World!
</title>
<!--
<link rel="stylesheet" href="/css/master.css" >
-->
</head>
<body>
<h1>
유저 정보 출력
</h1><br>
<script>
</script>
<span
class=
"aid"
>
USER ID
<
%= aid %>
</span><br>
<span
class=
"name"
>
NAME
<
%= name %>
</span><br>
<span
class=
"level"
>
LEVEL
<
%= level %>
</span>
</body>
</html>
\ No newline at end of file
Please
register
or
login
to post a comment