<html>
<body>
<ul id="myList">
<li>咖啡</li>
<li>茶</li>
<li>纯水</li>
<li>苏打水</li>
</ul>
<button type="button" onclick="myFunction()">改变列表项标记</button>
<script>
function myFunction() {
document.getElementById("myList").style.listStyleImage = "url('/i/pic/sqpurple.gif')";
}
</script>
</body>
</html>