我已经建立了像这样的对象:jQuery的,如果对象具有价值
tabArray.push({'linkId': 'tabBuild', 'id': 'columnRight','url': '/pages/publish/', 'content':response});
我如何使用jQuery/JavaScript的做一个测试对象上,看它是否含有一定的网址?
我尝试这样做:if($.inArray('/pages/publish/', tabArray) > -1) alert('its in there');
,但无济于事!
的[查找ID对象在javascript对象数组]可能重复(http://stackoverflow.com/questions/7364150/find-object-by- id-in-javascript-objects) –