Description of the problem: the json array to find out the predetermined condition satisfies the specified data.
Solution: [filter ()]
var employeesData = [
{ name: "王小明", mobile: "13900008789" },
{ name: "陈霞", mobile: "13900008789" },
{ name: "张悦", mobile: "13900008789" }
]
var queryData = employeesData.filter(function(fp) {
return fp.name === "王小明"
})
console.log(queryData)