一.JavaScript判断对象类型 1.可以使用typeof函数判断对象类型 function checkObject1(){ var str="str"; console.log(typeof(str))//输出"string"; console.log(typeof(str)=="string")//输出true; } 2.使用对象的构造函数属性(constructor),来判断对象的类型: function checkObject2()…
主要知识点 terms搜索多个值,并和term的比较 一.term和terms terms是在这个字段中搜索多个值,相当于sql中的in语法 (select * from tbl where col in ("value1", "value2")) term: {"field": "value"} terms: {"field": ["value1", "value2&…