问题
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? E.g. without specifying the searchFields that were set up on its creation.
回答1:
Not possible, you must always pass the same arguments (search fields, etc). You can open a feature request here if you want.
回答2:
JSONstore does not provide a way to do what you are asking about - init() doesn't keep any "memory" of the arguments that were previously passed to it, so if you want to re-open a collection, the arguments to init() must be passed again.
来源:https://stackoverflow.com/questions/22615725/calling-init-on-wl-jsonstore-without-repeating-previously-used-options