lineDashOffset = i; ctx.moveTo(10,10*i); ctx.lineTo(100,10*i); ctx.stroke(); } } </script>这个例子中,绘制了9条虚线,虚线使用的参数都是[10,5],偏移量依次为1 ~9 ...
確定! 回上一頁