โดย Ik Kat » 05/10/2017 5:57 pm
ต้องการสร้างตัวแปร canvas และให้อ้างอิงไปที่ this._text_canvas สามารถใช้คำสั่งอะไรได้บ้างค่ะ
โค้ด: เลือกทั้งหมด
Plugin.prototype = {
init: function () {
this._text = $(this.element).find(".picedit_textbox");
this._text_canvas = this._text.children("canvas")[0];
this._text_ctx = this._text_canvas.getContext("2d");
};
};
ต้องการสร้างตัวแปร canvas และให้อ้างอิงไปที่ this._text_canvas สามารถใช้คำสั่งอะไรได้บ้างค่ะ
[code]
Plugin.prototype = {
init: function () {
this._text = $(this.element).find(".picedit_textbox");
this._text_canvas = this._text.children("canvas")[0];
this._text_ctx = this._text_canvas.getContext("2d");
};
};[/code]