jquery常用函数

1、$.inArray函数

jquery.inarray(value,array)
确定第一个参数在数组中的位置(如果没有找到则返回 -1 )。

determine the index of the first parameter in the array (-1 if not found).

返回值   jquery

参数
value (any) : 用于在数组中查找是否存在

array (array) : 待处理数组。

 2、eval函数语法 

eval(codes); 
codes -- 字符串形式的表达式或语句 
eval函数返回值 

用途:1、eval函数解析json对象  2、eval函数异常 

原文地址:https://www.cnblogs.com/564085446java/p/3771847.html