Skip to content

Style self setImageWithCallback string string function

xu.jingyu edited this page Aug 8, 2020 · 1 revision

简介

设置图片、占位图及回调

  • @param image string 本地图片path或网络图片URL
  • @param holder string 占位图path或者URL
  • @param callback function 图片加载结果回调,格式为:
function(success, error, imgURL)
	--- success为boolean,加载是否成功
	--- error为string,加载失败的信息
	--- imgURL为string,请求的图片地址
end
Clone this wiki locally