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:45:47 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
13936234d93e9407e2aba9f5c6fc39e4327154a1
13936234
1 parent
a1178d13
Modify code for mongoDB
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
컴퓨터공학과.js
컴퓨터공학과.js
View file @
1393623
...
...
@@ -22,13 +22,13 @@ request(options, function (error, response) {
if
(
error
)
throw
new
Error
(
error
);
var
jason
=
response
.
body
var
json
=
JSON
.
parse
(
jason
)
const
data
=
{}
for
(
var
i
in
json
[
"rows"
])
{
console
.
log
(
json
[
"rows"
][
i
])
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
);
}
console
.
log
(
json
[
"rows"
][
0
][
"subjt_name"
])
});
\ No newline at end of file
...
...
Please
register
or
login
to post a comment