日期:2014-05-16 浏览次数:20340 次
<ul>
<li>关键词,关键词,关键词,关键词</li>
</ul>
<html>
<head>
</head>
<body>
<ul>
<li>关键词,关键词,关键词,关键词</li>
</ul>
<script type="text/javascript">
var li = document.getElementsByTagName('li');
var cont = li[0].innerHTML
var rep = cont.replace(/,/g,"</li><li>");
li[0].innerHTML = rep;
</script>
</body>
</html>