阅读背景:

根据密钥的值显示JSON文件中的值

来源:互联网 

I have a json file that every object has 3 keys and values. Description, poster image and genre. Each object is for movies. I succeeded to append poster images and descriptions. But now I want to hide them all and then show the ones that has particular "genre" values when I click a link. I did the hiding stuff. When I click "drama" link, jquery hides all movie posters and descriptions. I want to add the code that can show again the ones with particular "genre" values to it. How can I do it? The code I wrote so far is below. First "drama" is id of the link, second is the value of "genre" key. Each "Box" includes a movies poster and description.I have a json file that every object has 3 keys




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: