<template>
<view class="content">
<image class="logo" src="/static/logo.png"></image>
<view class="text-area">
<text>const language = uni.getStorageSync('language') || 'zh'</text>
<text>的结果:{{str}}:</text>
<text>{{err}}</text>
</view>
</view>
</template>
<script>
export default {
data() {
return {
str: 'default',
err: 'no err'
}
},
onLoad() {
try {
this.str = uni.getStorageSync('language') || 'nothing'
} catch (err) {
this.err = err
}
},
methods: {
}
}
</script>
DCloud_iOS_WZT
辛苦 复现问题的示例工程提供一下
2024-02-18 17:10