【发布时间】:2014-11-13 03:54:50
【问题描述】:
如何从 JSON 格式搜索关键字。使用 jquery 或 javascript
我有一个 JSON 内容。从中我需要搜索并获取搜索关键字的 id。
Keyword: "authority" => 我想得到 id 为 4
Keyword: "basic" => 我想把 id 设为 3
{
"data": {
"1":[
{
"id":"3",
"title":"my title",
"content":"this is very basic sample content"
},
{
"id":"4",
"title":"My sample title and text",
"content":"renewed by a licensing authority may be signed by such officer by the State Government.<p></p>"
}
]
}
}
【问题讨论】:
标签: javascript jquery json jquery-plugins