|
很干净的页面,就一个函数调用而已。 你们用IOS 测试一下!!! 有时候能滑动,有时候无法滑动,好像没选中hanlder一样。。。
function openSlider() {
var uislider = api.require('UISlider');
uislider.open({
animation : true,
orientation : 'horizontal',
rect : {
x : 0,
y : 100,
size : 300
},
handler : {
w : 50,
h : 40,
bg : 'widget://res/handler.png'
},
bar : {
h : 4,
bg : '#dedede',
active : '#000'
},
value : {
min : 0,
max : 100,
step : 0.1,
init : 50
},
fixedOn : api.frameName,
fixed : true
}, function(ret, err) {
});
} |
|