简体   繁体   English

在WL.JSONStore上调用init而不重复以前使用的选项

[英]Calling init on WL.JSONStore without repeating previously used options

Is there a way to initialize() ("re-open") an existing JSONStore collection with the same arguments that were used to create it, without passing them again? 有没有一种方法可以初始化()(“ re-open”)现有的JSONStore集合,而该集合具有用于创建它的相同参数,而无需再次传递它们? Eg without specifying the searchFields that were set up on its creation. 例如,不指定在其创建时设置的searchFields。

Not possible, you must always pass the same arguments (search fields, etc). 不可能,您必须始终传递相同的参数(搜索字段等)。 You can open a feature request here if you want. 您可以根据需要在此处打开功能请求。

JSONstore没有提供一种方法来解决您要问的问题-init()不会保留先前传递给它的参数的任何“内存”,因此,如果您想重新打开一个集合,则要使用init的参数()必须再次传递。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM