students%5B0%5D表示:students[0]javascript
%5B爲左中括號[java
%5D爲右中括號]ui
這樣就明白了code
var qs = require('qs'); var obj = { name:'Tom', description:'hello', hobbies:['basketball','swimming'] }; //stringify查詢字符串 var str = qs.stringify(obj); console.log(str); //運行結果:name=Tom&descript=hello&hobbies%5B0%5D=basketball&hobbies%5B1%5D=swimming