我正在做一个练习,在REPL中使用nodejs,我得到了一个URL,在通过process.argv[]访问它之后,我被要求在上面使用querystring.parse()来检索a和b的值并将它们记录到控制台a=100&b=200“ 到目前为止,以下是我的代码 const qs = require("querystring");
function fn() {console.log("query b is " + query["b"]
这是我试图测试的组件内的方法,但得到此错误:{TypeError:无法读取未定义的属性'push‘} //merge together thecurrent query with the new query element
var currentQuery = QueryString.parse(this.state.currentProjectQuery