[英]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。
JSONstore没有提供一种方法来解决您要问的问题-init()不会保留先前传递给它的参数的任何“内存”,因此,如果您想重新打开一个集合,则要使用init的参数()必须再次传递。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.