繪製虛線,通過設定 lineDashOffset 屬性和呼叫 setLineDash() 方式。 ctx.lineWidth = 10; ctx. ... lineDashOffset = ldOffset; //設定了偏移量ctx.
確定! 回上一頁