2.0.9 • Published 11 months ago
js-fastcode v2.0.9
安装
npm install js-fastcode
使用
1、引入
import {plus} from "js-fastcode"
2、使用
plus(1,2)
1、如果函数需要在 template 中使用,因为 template 不能识别函数,所以需要在 methods 中进行定义,然后才能使用。
2、其他函数使用方式一样。
<template>
<div>plus(1,2)</div>
<button @click="handleNumPlus(1,2)">计算</button>
</template>
<script>
import {plus} from "js-fastcode"
export default{
methods: {
plus,
// 计算两个数之和
handleNumPlus(a,b) {
plus(a,b)
},
}
}
</script>
3、文档
2.0.3
1 year ago
2.0.2
1 year ago
2.0.5
1 year ago
2.0.4
1 year ago
2.0.7
11 months ago
2.0.6
1 year ago
2.0.9
11 months ago
2.0.8
11 months ago
2.0.1
1 year ago
2.0.0
1 year ago
1.0.11
1 year ago
1.0.10
1 year ago
1.0.12
1 year ago
1.0.9
1 year ago
1.0.8
1 year ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago