⚡Slogan: 提高前端的生产率
npm install lightning-tools -S
import _ from 'lightning-tools'
_.fen2yuan(2000)
<template>
<div>
<span v-text="fen2yuan(2000) + '元'"></span>
</div>
</template>
<script>
import _ from 'lightning-tools'
export default {
data () {
return {
fen2yuan: _.fen2yuan
}
}
}
</script>