We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
用下面这个就监听所有了。 yuxStorage.addEventListener((type, data) => { console.log(type, data) }) 请问怎么监听指定一个key,有变化就输出对应的value呢?
The text was updated successfully, but these errors were encountered:
@570295535 这个在里面判断一下就行了
yuxStorage.addEventListener((type, data) => { if (data.key === 'A') { console.log(data.value) } })
Sorry, something went wrong.
No branches or pull requests
用下面这个就监听所有了。
yuxStorage.addEventListener((type, data) => {
console.log(type, data)
})
请问怎么监听指定一个key,有变化就输出对应的value呢?
The text was updated successfully, but these errors were encountered: