InputNumber

自定义数值输入框元素

สคริปต์นี้ไม่ควรถูกติดตั้งโดยตรง มันเป็นคลังสำหรับสคริปต์อื่น ๆ เพื่อบรรจุด้วยคำสั่งเมทา // @require https://update.greasyfork.org/scripts/432807/1160998/InputNumber.js

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey to install this script.

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

ผู้เขียน
Laster2800 Liang
เวอร์ชัน
0.0.1.20230313154948
สร้างเมื่อ
22-09-2021
อัปเดตเมื่อ
13-03-2023
Size
5.53 กิโลไบต์
สัญญาอนุญาต
ไม่มี

InputNumber

自定义数值输入框元素。

<input is="laster2800-input-number" value="5.6" digits="2" min="-2.8" max="10" allow-zero="false">

使用 min / max 限制范围,digits 设置精度。

allow-zero 设置为 true 时强制允许 0,设置为 false 时强制禁止 0,缺省或设置为其他值时不干涉范围控制。

可使用上下方向键(配合 Alt/Shift/Ctrl)调整数值大小。

Source: Gitee / GitHub - by Laster2800