1.0.3 • Published 4 years ago

calculation-mopon v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

添加一个依赖

npm i calculation-mopon   
     <br/>

引入这个包

import cal from 'calculation-mopon' 
    <br/>

挂载到全局

Vue.prototype.$math = cal;     
<br/>

加法运算

this.$math.accAdd(num1,num2)     
<br/>

减法运算

this.$math.accSub(num1,num2)     
<br/>

乘法运算

this.$math.accMul(num1,num2)     
<br/>

除法运算

this.$math.accDiv(num1,num2)    
 <br/>

判断是否是空函数

this.$math.isEmpty()

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago