10
ทำให้ฟังก์ชันรอจนกระทั่งมีองค์ประกอบอยู่
ฉันกำลังพยายามเพิ่มผืนผ้าใบบนผืนผ้าใบอีกผืน - ฉันจะทำให้ฟังก์ชั่นนี้รอเพื่อเริ่มต้นจนกว่าจะสร้างผืนผ้าใบแรกได้อย่างไร function PaintObject(brush) { this.started = false; // get handle of the main canvas, as a DOM object, not as a jQuery Object. Context is unfortunately not yet // available in jquery canvas wrapper object. var mainCanvas = $("#" + brush).get(0); // Check if everything is ok if …
159
javascript
jquery
html
function