var words = [
{word: 'cow', explain: 'animal'},
{word: 'apple', explain: 'fruit'},
{word: 'dog', explain: 'animal'}];
var word2 = ["cow", "dog"];
怎样比较话与WORD2和颜色匹配的单词红与jQuery?获取从对象元素,并与阵列比较 - Jquery的
我的问题在于对象,我不能提取元素字
你能帮助我吗? 谢谢
如果某些HTML标记暗示你无法色彩搭配的JavaScript – adeneo
任何东西 - 你应该张贴它。否则,没有东西*颜色* – RomanPerekhrest
你想在'words'中得到'word2'的索引吗? –