1. Function
var vlaue = $.inArray(value, array);
2. How to use
if(value != -1) { console.log("value在array中"); }