Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能告诉我是否可能?
基本上,我想搜索一组 json 对象,如果我在其中一个对象中找到特定值,我想从同一个对象中获取其他值。
谢谢
var myArrayObject = $.parseJSON(<string>); for(var i = 0;i <myArrayObject.length; i++){ if (myArrayObject[i] == "<your specified value>") { // your code here } }