|
[开发工具]
返回页面的控件不见了,请问是要加什么代码吗?
[复制链接]
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript">
function kjshow() {
var obj = api.require('actionButton');
obj.open({
items : [{
bgColor : '#00CED1',
title : '进货单',
image : 'widget://res/actionSheet_icon1.png'
}, {
bgColor : '#FFC0CB',
title : '退货单',
image : 'widget://res/actionSheet_icon2.png'
}, {
bgColor : '#DB7093',
title : '销货单',
image : 'widget://res/actionSheet_icon3.png'
}, {
bgColor : '#FF00FF',
title : '销退单',
image : 'widget://res/actionSheet_icon4.png'
}, {
bgColor : '#A52A2A',
title : '调拨单',
image : 'widget://res/actionSheet_icon5.png'
}, {
bgColor : '#A0522D',
title : '借出单',
image : 'widget://res/actionSheet_icon6.png'
}, {
bgColor : '#7FFF00',
title : '借出归还单',
image : 'widget://res/actionSheet_icon7.png'
}, {
bgColor : '#7FFF00',
title : '开账/调整单',
image : 'widget://res/actionSheet_icon7.png'
}],
fixedOn : 'frame1',
topHeight : 150,
pageControl : {
activeColor : '#778899',
inactiveColor : '#DDA0DD'
}
}, function(ret, err) {
//api.alert({msg:ret.index});
api.openFrame({
name : 'frame1_01',
url : 'frame1_01.html'
});
});
}
apiready = function() {
kjshow();
}
</script>
<div id="thridHeader" class="titlebar">
<div class="topbar whitebar">
<div class="back" tapmode><img src="../image/ic_back_u.png" alt=""></div>
<div class="title" id="title">电影</div>
</div>
</div>
这里的控件就不显示了,请问我要加什么代码。
|
|