Skip to content

Conversation

@jqliingu
Copy link

No description provided.

@jqliingu jqliingu closed this Jan 20, 2021
@jqliingu jqliingu reopened this Jan 20, 2021
@hunshcn hunshcn self-requested a review January 21, 2021 06:59
Copy link
Contributor

@hunshcn hunshcn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没啥好说的,写的还可以。有这么些地方可以改进:

  1. 按钮可以加入视觉反馈,感觉按了跟没按一样。
  2. 用js来执行计算是做计算器不错的选择,嗯不过相比自己手撸计算流程缺了些锻炼。
  3. 逻辑上,我执行完了之后再点击数字应该是直接覆盖而不是数字跟在后面。

})
}
if(index == 19){
var result = rpn.calCommonExp(screenData);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

贼偷懒你

<block wx:for="{{ztNum}}" wx:key="zt">
<view class='ztit {{(index < 4 || index % 4 == 3 ) ? "gray" : "white"}}' bindtap="click" data-index="{{index}}" data-text='{{item}}'>{{item}}
</view>
</block>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这样很方便,知道用for很不错

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants