终于搞定了。
正确的写法是:
alert(document.querySelectorAll('div.weui_cell_hd.weui_cell_primary')[0].innerHTML)
多谢老师了。下次小心点。多谢!