setLineDash (arr):繪制虛線他的參數是一個數組,數組元素是數字。 ... setLineDash([1,0]) ctx.stroke() // 設置虛線長度大於0 ctx.beginPath() ctx.
確定! 回上一頁