Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/81.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript IBM worklight WL.JSONStore.QueryPart()。Jsonstore错误_Javascript_Html_Ibm Mobilefirst_Jsonstore - Fatal编程技术网

Javascript IBM worklight WL.JSONStore.QueryPart()。Jsonstore错误

Javascript IBM worklight WL.JSONStore.QueryPart()。Jsonstore错误,javascript,html,ibm-mobilefirst,jsonstore,Javascript,Html,Ibm Mobilefirst,Jsonstore,当我使用高级搜索时,它显示WL.JSONStore.QueryPart()。它不是一个函数,也不被认为是存在的东西,它是否已弃用,或者我需要以不同的方式使用它 var queryPart1 = WL.JSONStore.QueryPart().like('category', 'abc') var queryPart2 = WL.JSONStore.QueryPart().like('category', 'xyz'); WL.JSONStore.get('Categories').adv

当我使用高级搜索时,它显示WL.JSONStore.QueryPart()。它不是一个函数,也不被认为是存在的东西,它是否已弃用,或者我需要以不同的方式使用它

var queryPart1 = WL.JSONStore.QueryPart().like('category', 'abc')
var queryPart2 = WL.JSONStore.QueryPart().like('category', 'xyz');

  WL.JSONStore.get('Categories').advancedFind([queryPart1,queryPart2])

   .then(function(results){

                     })

.fail(function(errorObject) {
                        alert("fail" + errorObject); 
                          });   

查询部件和advancedFind仅在6.2及更高版本上受支持。

您使用的是哪一版本的IBM Worklight?我使用的是6.1.0版本