navigator中无法获取变量值
- 当前 Bug 的表现(可附上截图)
navigator中无法获取变量值,如图:
- 预期表现
- 复现路径
- 提供一个最简复现 Demo
WXML:
< view class = 'topic-title' > < text >#话题讨论{{current_circle.circle_id}}</ text > < navigator data-id = "{{current_circle.circle_id}}" url = '/pages/topic/index/index?circle_id={{current_circle.circle_id}}' hover-class = "none" > < text >加入讨论{{current_circle.circle_id}}</ text > </ navigator > </ view > |
JS:
Page({ data: { current_circle: { } }, onLoad: function (){ var that = this var current_circle = that.data.current_circle current_circle.circle_id = 27 that.setData({ current_circle: current_circle }) } }) |