Giter Club home page Giter Club logo

calculator's Introduction

calculator

小程序计算器

展示方法

将代码克隆到本地之后,通过微信小程序开发工具导入calculators包即可

一些问题

由于鄙人才疏学浅,所以这个计算器小程序还很脆弱,不过一些基本的加减乘除还是没问题。 现在是计算器小程序第一版本。接下来会有一些优化策略和更新。

接下来的工作以及优化

第二个版本: 2017年9月1日开始:

1、删除功能的实现。现在不具备删除功能,只有clear一键清空。

2、更改result区域为showResult区域。原来的show区域更改为history区域,增加historyList 列表用来存放每次计算过的数据展示。

3、修改每次计算后的逻辑。在计算后如果直接输入数字,那么就默认从数字开始新的计算,如果输入操作符,那么就是直接让上次计算的结果与这次的运算符开始新的运算。

第三个版本: 具体时间未定:

1、展示数据以 3,213这种三位数一个逗号的形式隔开。 小数: 1,123.1232131

2、修改展示数据的css。要和计算数据有区分。该功能可以提前

3、修改展示区域数字长度,不宜过长。

calculator's People

Contributors

leomelody avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.