ImageSlider的ImageSliderStyles样式怎么设置?怎么让他启动就黑屏图册轮播,还有nativeObj的实例太少,还有几个是错误的,把ImageSlider写成ImageSliderView
这个是对的
function createView(){
view = new plus.nativeObj.ImageSlider('test',
{top:'100px',left:'0px',height:'200px',width:'100%',position:'absolute',images:[{src:'1.png'},{src:'2.png'},{src:'3.png'}]});
plus.webview.currentWebview().append(view);
}
这个报错
function createView(){
view = new plus.nativeObj.ImageSliderView('test',{top:'200px',left:'0px',height:'50%',width:'100%',images:[{src:'1.png'},{src:'2.png'},{src:'3.png'}]});
// 直接显示
view.show();
}
1 个回复
4***@qq.com
ImageSliderView改成ImageSlider