/** 在component中 canvasToTempFilePath 遇到err: fail canvas is empty*/
/** pages中创建画布 */
wx.createCanvasContext("image-canvas", this);
wx.canvasToTempFilePath(options)
/** 在Component 中 需要为 canvasToTempFilePath 指定上下文 */
wx.createCanvasContext("image-canvas", this);
wx.canvasToTempFilePath(options,this)
/** 使用 canvas.draw() 的回调函数去代替setTimeout */