lineTo(100,50) //用stroke()來繪製相連點的線ctx.stroke(). 上方的程式碼應該會出現下圖的結果,也就是一條水平線: https://ithelp.ithome.com.tw/upload/images/
確定! 回上一頁