简体   繁体   中英

Windows phone 8.1 save data with javascript

is there any way to save settings data with javascript in windows phone 8.1 application. In C# is ApplicationData.Current.LocalSettings. Is anything like that possible in javascript?

Thank you

The same API is available to HTML/Javascript apps. See here for more information.

var localSettings = applicationData.localSettings;
var localFolder = applicationData.localFolder;
localSettings.values["exampleSetting"] = "Hello Windows";

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM