SDN301m_-_SU_2024_-_RE_2428.webp
Q

SDN301m_-_SU_2024_-_RE_2428.webp

Kizspy | Question: 4 (Choose 1 answer)
Imagine that you sent the following ajax request:$.post("/process", {name:'john'}, function(data){// Do some stuff });
What will be the answer from the server?
Tip: On server side, we have the code which is given below
Code:
app.post('/process', function(req, res){var data = ";
if(req.xhr){
data += 'One';}
if(req.body.name){data += 'Two';}
});res.send(data);
A. 'One'
B. 'Two'
C. 'OneTwo
D. All of these
FUOVER

Thông tin

Category
SDN301m
Thêm bởi
quangthai2001
Ngày thêm
Lượt xem
1,441
Lượt bình luận
5
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom