【发布时间】:2014-11-20 04:18:42
【问题描述】:
我是工作灯的新手。在 IBM 信息或知识中心中讨论了所有 API,但没有讨论它们的属性。我需要了解 api 列表及其属性和选项。请给我一些链接。
【问题讨论】:
-
你能不能再具体一点?
-
就像可以在 WL.JSONStore.init(collections,options) 甚至在集合内部传递的选项
我是工作灯的新手。在 IBM 信息或知识中心中讨论了所有 API,但没有讨论它们的属性。我需要了解 api 列表及其属性和选项。请给我一些链接。
【问题讨论】:
这在文档中有很好的解释。
例如,您询问了 WL.JSONStore.init,所以对于 JSONStore.init:
{string} options.username Optional - Name of the file that is created to store data for the collections, must be an alphanumeric string ([a-z, A-Z, 0-9]) and start with a letter. The default one is 'jsonstore'.
{string} options.password Optional - Password that is used to secure the contents of the store, by default there is no data encryption.
{boolean} options.clear Optional - Clears accessors without removing its contents from the store.
{boolean} options.localKeyGen Optional - Flag that determines if key generation uses a local (false) or remote (true) random number generator.
【讨论】: