如何使用钛在应用程序中保存数据或一组列表?

Pra*_*Raj 2 data-storage titanium appcelerator appcelerator-mobile

我试图将数据列表保存到应用程序中,因为我想要保存来自互联网的列表.

我不是说像书签

这就像保存或保存我想要的所有列表,进入手机以供将来参考,然后不需要任何互联网连接

总而言之,如果你对android有任何想法,那就像我想在钛中实现共享偏好.

请帮忙

谢谢.

bh8*_*h88 6

http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.App.Properties-module

list = ['one', 'two', 'three'];

Titanium.App.Properties.setList('propertyList', list);

Titanium.App.Properties.getList('propetyList');
Run Code Online (Sandbox Code Playgroud)

Ti.App.Properties存在于应用程序会话之外.