我正在决定如何在网站上实施“选择”,并且我正在强烈考虑使用mobiscroll,只有一件令我烦恼的事情,那就是“额外点击”(与老式的相比)选择选项后需要“设置”按钮的下拉列表。
我的问题是,有没有办法在通过点击或触摸选择一个选项时关闭滚动条并设置值,但是如果因拖动滚动条或使用鼠标滚轮选择了新选项,是否有办法? / p>
这是我的代码:
<script type="text/javascript">
$('#myScroller').mobiscroll({
preset: 'select',
theme: 'android-ics',
mode: 'mixed',
display: 'bubble',
rows: 7,
inputClass: 'subtleDropdown',
onChange: function(val, inst) {
//I would think this is where it's supposed to go, no luck thus far though!
console.log(this);
},
});
</script>
干杯!
答案 0 :(得分:0)
最后,我们决定不使用mobiScroll(可用的信息太少),所以我正在关闭这个问题。