Foxtable(狐表)用户栏目专家坐堂 → Cannot read property 'setAttribute' of null


  共有3146人关注过本帖树形打印复制链接

主题:Cannot read property 'setAttribute' of null

帅哥哟,离线,有人找我吗?
benben325
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:幼狐 帖子:169 积分:1545 威望:0 精华:0 注册:2021/8/9 16:05:00
Cannot read property 'setAttribute' of null  发帖心情 Post By:2021/8/27 16:17:00 [显示全部帖子]

下面这段代码报错:Cannot read property 'setAttribute' of null
With wb.AddTabBar("page1", "tb1", 1)
    .AddPage("mainage1","单据报表")
    .AddPage("mainage2","明细报表")
    .AddPage("mainage3","跟踪报表")
End With

wb.InsertHTML(<script>document.getElementById('mainage1').style.display='none';document.getElementById('mainage2').style.display='block';document.getElementById('mainage3').style.display='none';document.getElementById('mainage1_btn name=').setAttribute('class','weui_tabbar_item');document.getElementById('mainage2_btn name=').setAttribute('class','weui_tabbar_item weui_bar_item_on');document.getElementById('mainage3_btn name=').setAttribute('class','weui_tabbar_item');</script>")

 回到顶部