var qcanvas = new Qcanvas(["qcanvas",300,200]); 或 var qcanvas = new Qcanvas({ id:'qcanvas', width:300, height:200 })