可能会让大脑冻结,但我无法让它发挥作用。任何帮助,将不胜感激。谢谢
var prlist = loadList(rootUrl + '?action=product&country_id=' + userSelCountry);
response from PHP : [{"id":"-1","text":"no results found"}]
我尝试了以下但没有成功
console.log(prlist) // [Object { id="-1", text="no results found"}]
console.log(prlist.id);//undefined
console.log(prlist['id'] // undefined
我需要检索id值。
感谢