Skip to content
New issue

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

taro怎么局部刷新啊,我这两个写法不管用 #4038

Closed
WuMengYu opened this issue Aug 1, 2019 · 3 comments
Closed

taro怎么局部刷新啊,我这两个写法不管用 #4038

WuMengYu opened this issue Aug 1, 2019 · 3 comments
Labels
question Further information is requested

Comments

@WuMengYu
Copy link

WuMengYu commented Aug 1, 2019

① this.setState({ [sku_list[${current_pro_stock}]]: value })
var mText = 'sku_list['+ current_pro_stock +']';
console.log('mText', mText);
② this.setState({
[mText]: value,
})

@taro-bot
Copy link

taro-bot bot commented Aug 1, 2019

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@WuMengYu WuMengYu closed this as completed Aug 1, 2019
@WuMengYu
Copy link
Author

WuMengYu commented Aug 1, 2019

111

@WuMengYu WuMengYu reopened this Aug 1, 2019
@luckyadam
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants