無意義集合
"網(wǎng)站, 81"
"圖片, 79"
"產(chǎn)品, 38"
"搜索, 35"
"用戶, 24"
"提供,22"
"粉絲, 27"
"分享, 18"
工作原理
先定義好一個(gè)canvas畫布
畫好相應(yīng)圖形與坐標(biāo)
functiondrawRectangle(x,y,w,h,fill) {
context.beginPath();
context.rect(x,y,w,h);
context.closePath();
context.stroke();
if(fill) {
vargradient = context.createLinearGradient(0,0,0,300);
gradient.addColorStop(0,'green');
gradient.addColorStop(1,'rgba(67,203,36,.15)');
context.fillStyle= gradient;
context.strokeStyle= gradient;
context.fill();
}
獲取數(shù)組中有效數(shù)值以分別確定圖像高度