layarea icon indicating copy to clipboard operation
layarea copied to clipboard

能否支持一下批量渲染呢?

Open africanCodeFarmer opened this issue 5 years ago • 1 comments

layarea.render({ elem: '.area-picker', change: function (res) { //选择结果 console.log(res); } });

africanCodeFarmer avatar Oct 07 '20 14:10 africanCodeFarmer

你可以将他们定义为同一个类,然后使用each循环渲染。 $('.area-picker').each(function(i,item){ layarea.render({elem:$(item)}) })

fesiong avatar Dec 22 '20 06:12 fesiong