第一次使用adobe air 应用程序。不知道下面的代码有什么错误。它没有提醒“否”值。
请看,saveData()
和getData()
来自这个问题。
function check(){
var d1 = getData('item1');
var d2 = getData('item2');
if (d1 && d2) {
alert('yes');
} else {
alert('no');
}
}
saveData('item1','value1');
saveData('item2','value2');
// I know that its ridiculous to save the data and then reset it.
// But This is how the main code works. sorry.
air.EncryptedLocalStore.reset();
check();