2013-07-17 73 views

回答

2

同一页面还声明您可以使用WL.JSONStore.init并在那里声明密码。如果您不声明它,它将不会使用密码。

的例子显示:

var collections = { 
    ... 
} 

var options = { 
    username: 'carlos', //default: 'jsonstore' 
    password: '123' //default: no encryption 
} 

WL.JSONStore.init(collections, options) { 
    ... 
} 


要了解如何使用JSONStore功能的工作灯,go through the JSONStore training module and sample apps

+0

我在哪里需要添加this..i意味着collectionname.js(自动生成)或appname.js文件。 u能PLZ详细解释通过JSONStore培训模块和示例应用程序 – Avinash

+0

转到:http://www.ibm.com/developerworks/mobile/worklight/getting-started.html#advanced-client-side-development –

+0

雅我它并完成 – Avinash

相关问题