Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이나경
/
time_table
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
이나경
2022-06-04 17:44:47 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a1178d138f36c40445b09f50eee26a75f4ed3bb1
a1178d13
1 parent
b3e4dca3
Modify code for mongoDB
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
컴퓨터공학.js
컴퓨터공학.js
View file @
a1178d1
...
...
@@ -18,5 +18,18 @@ var options = {
};
request
(
options
,
function
(
error
,
response
)
{
if
(
error
)
throw
new
Error
(
error
);
console
.
log
(
response
.
body
);
});
\ No newline at end of file
var
jason
=
response
.
body
var
json
=
JSON
.
parse
(
jason
)
const
data
=
{}
for
(
var
i
in
json
[
"rows"
]){
var
obj
=
{};
obj
[
'name'
]
=
json
[
"rows"
][
i
][
"subjt_name"
];
obj
[
'time'
]
=
json
[
"rows"
][
i
][
"timetable"
];
obj
[
'prof'
]
=
json
[
"rows"
][
i
][
"teach_na"
];
obj
[
'credit'
]
=
json
[
"rows"
][
i
][
"unit_num"
];
console
.
log
(
obj
);
}
});
...
...
Please
register
or
login
to post a comment