纯丸。。敏储。。
this.canvas.width = this.el.clientWidth;
this.canvas.height = this.el.clientHeight;
this.stageInfo = this.canvas.getBoundingClientRect();
this.cxt.fillStyle = this.background;
朋鞍,已添,妥箕,
this.cxt.moveTo(
e.changedTouches[0].pageX - this.stageInfo.left,
e.changedTouches[0].pageY - this.stageInfo.top
);
下面那個(gè)lineTo也這樣的點(diǎn)位就可以了。
h5canvas實(shí)現(xiàn)簽名(vue)實(shí)現(xiàn)個(gè)人簽名技術(shù)上沒那么復(fù)雜更舞,只是平時(shí)大家用canvas少畦幢,實(shí)現(xiàn)該需求主要用到的技術(shù)點(diǎn): 1、h5新標(biāo)簽canvas 2缆蝉、touchstart事件呛讲,touchmove事件,t...