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
问题描述 绑定的数据,赋值0的时候编译到小程序时,不更新。
复现步骤
<template> <view class="content"> <text class="title">{{ title }}</text> </view> </template> <script> export default { data() { return { title: '' }; }, onLoad() { this.title = 0; }, methods: {} }; </script>
实际结果 问题仅出现在小程序,目前遇到有微信小程序和钉钉小程序。 当定义的title是空字符串的时候,后续再赋值为0时,页面数据不会更新,赋值其它非0值时,表现正常。 当定义的title是null,undefined时,不会有这个问题。
title
0
null
undefined
The text was updated successfully, but these errors were encountered:
已确认此问题,后续会讨论修改
Sorry, something went wrong.
这个是微信小程序的问题
187e782
StrivingRabbit
No branches or pull requests
问题描述
绑定的数据,赋值0的时候编译到小程序时,不更新。
复现步骤
实际结果
问题仅出现在小程序,目前遇到有微信小程序和钉钉小程序。
当定义的
title
是空字符串的时候,后续再赋值为0
时,页面数据不会更新,赋值其它非0值时,表现正常。当定义的
title
是null
,undefined
时,不会有这个问题。The text was updated successfully, but these errors were encountered: