jQuery access JSON Object

后端 未结 5 1783
梦毁少年i
梦毁少年i 2021-02-06 04:14

How do I access the name of an item in an Object Literal using jQuery?

For example how would I read \"title\", \"link\", \"media\", ect... in this

{
             


        
5条回答
  •  执笔经年
    2021-02-06 04:54

    for (var key in json) {
      // ...
    }
    

    (this is standard javascript, not jQuery-speficic)

提交回复
热议问题