Imagine that you sent the following ajax request: post('/process', {name:'john'}, function(data){ 1 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);
Dễ4 phương ánCó lời giảiXuất hiện trong 1 bộ đề
A·B·C·DCác phương án trả lời
OneĐúng
BTwo
COneTwo
DAll of these
Giải thích chi tiết
Khi bạn gửi yêu cầu AJAX POST đến đường dẫn '/process' với dữ liệu {name: 'john'} và một hàm callback, thì câu trả lời từ server sẽ là gì?