下面这段代码报错: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>")