1.vue存与h5取
vue:
uni.setStorageSync('isClick', true)
h5:
JSON.parse(plus.storage.getItem('isClick')).data
2.h5存与vue取
vue:
uni.getStorageSync('isClick')
h5:
plus.storage.setItem('isClick',""+false)
注:plus.storage.setItem()不能直接存false,得加上""
1.vue存与h5取
vue:
uni.setStorageSync('isClick', true)
h5:
JSON.parse(plus.storage.getItem('isClick')).data
2.h5存与vue取
vue:
uni.getStorageSync('isClick')
h5:
plus.storage.setItem('isClick',""+false)
注:plus.storage.setItem()不能直接存false,得加上""