js如何获取html的数据?

js如何获取html的数据?

一般用原生js、jQuery获取html元素的值。&ltdiv id="test"&gt数值&ltdiv&gt原生js写法:alert(document.getElementById(
html-css110