picker icon indicating copy to clipboard operation
picker copied to clipboard

在一个页面调用两次以上要怎么使用呢

Open huanhuanhome opened this issue 6 years ago • 1 comments

在一个页面调用两次以上要怎么使用呢

huanhuanhome avatar Jul 28 '18 04:07 huanhuanhome

var picker = new Picker({ data: [first, second, third], selectedIndex: selectedIndex, title: '地址选择' }); 可以多次实例化,

function creatList(obj, list) { obj.forEach(function(item, index, arr) { var temp = new Object(); temp.text = item.name; temp.value = index; temp.code = item.code; list.push(temp); }) }

这里可以修改创建list

huanhuanhome avatar Jul 28 '18 05:07 huanhuanhome