帖子
帖子
用户
博客
课程
显示全部楼层
4
帖子
0
勋章
30
Y币

[开发工具] 返回页面的控件不见了,请问是要加什么代码吗?

[复制链接]
发表于 2015-3-17 10:15:12
a.jpg <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>

b.jpg
<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>       


c.jpg


这里的控件就不显示了,请问我要加什么代码。
show 显示一下
您需要登录后才可以回帖 登录

本版积分规则