x
 
<!DOCTYPE html>
<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>