数组如下
var arr = [
{id: "1", en: "Afghanistan", cn: "阿富汗", code: "93"},
{id: "2", en: "Iraq", cn: "伊拉克", code: "964"},
{id: "3", en: "Qatar", cn: "卡塔尔", code: "974"}
]
en,cn,code都能查询
比如输入aq,查询返回第二条
比如输入卡,查询返回第三条
比如输入97,查询返回第三条
犯罪嫌疑人X
相关分类