html中怎么找到隐藏的节点,index.html页面js找不到index_content.html页面里的元素节点...

本帖最后由 mrzou 于 2016-3-12 13:32 编辑

index.html页面js找不到index_content.html页面里的元素节点,我在index.html页面用js查询index_content.html页面里的元素id,发现js找不到节点,

index_content.html页面的内容不是被加载进了index.html页面里了吗,在访问index.html页面时应该是一个整体了呀,怎么找不到呢,求解??

appcan.ready(function() {

var titHeight = $('#header').offset().height;

appcan.frame.open("content", "people_content.html", 0, titHeight);

window.onorientationchange = window.onresize = function() {

appcan.frame.resize("content", 0, titHeight);

}

});

appcan.button(".nav-btn", "btn-act", function() {

appcan.window.close(-1);

})

var tabview = appcan.tab({

selector : "#tabview",

hasIcon : true,/*有没有图标*/

hasAnim : false,/*有没有背景*/

hasLabel : true,/*有没有文字*/

hasBadge : true,/*灰标*/

index : 2,

data : [{

label : "首页",

icon : "fa-home"

}, {

label : "订单",

icon : "fa-tags",

badge:1/*灰标*/

}, {

label : "个人中心",

icon : "fa-user"

}, {

label : "文章",

icon : "fa-book"

}]

});

tabview.on("click",function(obj, index){

if(index==1){

// appcan.window.close(-1);

appcan.window.open({

name:"my_order",

data:"my_order.html",

aniId:1

})

}else if(index==2){

//appcan.window.close(-1);

appcan.window.open({

name:"personal center",

data:"personal center.html",

aniId:1

})

}else if(index==0){

//appcan.window.close(-1);

appcan.window.open({

name:"index",

data:"index.html",

aniId:1

})

}

})

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值