1import * as kv from 'kv' 2 3console.log('testing kv...'); 4 5var key = 'key-test'; 6var value = 'this is amp kv test file'; 7 8// kv set 9kv.setStorageSync(key, value); 10 11// kv get 12var val = kv.getStorageSync(key); 13console.log('kv read: ' + val); 14 15// kv remove 16kv.removeStorageSync(key); 17 18console.log('testing kv end');