当前位置:网站首页>Node的json解析

Node的json解析

2022-06-21 16:51:00 CupidoZ

在这里插入图片描述
node的json解析模块
node内置的json模块可以对json数据做出解析

var httpSer = require('http');

httpSer.createServer((req,res)=>{
    
    res.end(JSON.stringify({
    
        name:'Lucy',
        id:'1003',
        gender:'man'
    }))
}).listen(2345);
原网站

版权声明
本文为[CupidoZ]所创,转载请带上原文链接,感谢
https://cupido.blog.csdn.net/article/details/125344798