home/categories/frontend/ecnu-icalk-autoskill-skillbank-convskill-chinese-gpt4-8-glm4-7-jquery表格数值颜色渐变设置-skill-md
frontenddevelopment

jquery

使用jQuery和chroma.js库,根据表格单元格(td)内的数值(0-100)设置从红色到绿色的背景颜色渐变,忽略非数值内容。

ECNU-ICALK
maintainer
ECNU-ICALK
Updated 3/13/2026
Stars
304
Forks
34
quick start

Installation and usage

使用jQuery和chroma.js库,根据表格单元格(td)内的数值(0-100)设置从红色到绿色的背景颜色渐变,忽略非数值内容。

Installation
$ install --globalskills.sh
Usage

Once installed, you can use this skill by running the following command in your terminal:

skills use jquery