当前位置:网站首页>When creating body middleware, express Is there any difference between setting extended to true and false in urlencoded?

When creating body middleware, express Is there any difference between setting extended to true and false in urlencoded?

2022-07-07 23:58:00 Xiao Zhang, run quickly.

One 、 Differences in modules used

         If set to false, So right. URL-encoded The analysis of data adopts querystring library ;
         If set to true, So using qs library , Allow encoding rich objects and arrays as url Coding format , Allow to use url Coded json Experience .

Two 、 The difference between the returned object format

         The returned object is a key value pair ,

                 When extended by false When , The value in the key value pair is 'String' or 'Array' form ,

                 When extended by true When , It can be any data type .

 

原网站

版权声明
本文为[Xiao Zhang, run quickly.]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202130553106413.html