Socket
Book a DemoInstallSign in
Socket

price-input

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

price-input

带有前缀的价格输入框

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

价格输入框组件

带有固定前缀的输入框组件,一般用于居中样式,但是有前缀不可删除的情况

使用方法:

直接采用

引入demo/index.js,调用 //input对象,前缀文字,小数点后的精确位数 priceInput(document.getElementById('input'),'¥',2);

npm 安装

npm install price-input 使用: var priceInput = require('price-input'); //input对象,前缀文字,小数点后的精确位数 priceInput(document.getElementById('input'),'¥',2);

Keywords

prefix input

FAQs

Package last updated on 04 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts