1.0.2 • Published 5 years ago
hhx-calculate v1.0.2
hhx-calculate
海华信 - 基础计算(加减乘除)
安装方法
npm install hhx-calculate
引用方法
标签引用
<script type="text/javascript" src="dist/hhx-calculate.js"></script>
<script>
var addRes = hhx_calculate.add('8', '8');
</script>
模块化引用(比如:webpack)
// 方法1:全局引用(hhx-calculate)
require('hhx-calculate');
// 方法2:变量引用
var hhx_calculate = require('hhx-calculate');
// 方法3:vue挂载原型调用
const hhx_calculate = require('hhx-calculate');
new Vue({
hhx_calculate,
render: (h) => h(App),
}).$mount('#app');
log 日志
1.0.2 / 2018-01-07
- algorithm optimization
1.0.1 / 2018-01-07
- update README.md
1.0.0 / 2021-01-07
- base project