如何把JS代码分离出来!
<html><head></head><body><divid="abc"></div><divid="efg"></div><scripttype="text/java...
<html>
<head>
</head>
<body>
<div id="abc"></div>
<div id="efg"></div>
<script type="text/javascript">
document.getElementById('abc').innerHTML="ABC显示内容";
document.getElementById('efg').innerHTML="efg显示内容"; </script>
</body>
</html> 展开
<head>
</head>
<body>
<div id="abc"></div>
<div id="efg"></div>
<script type="text/javascript">
document.getElementById('abc').innerHTML="ABC显示内容";
document.getElementById('efg').innerHTML="efg显示内容"; </script>
</body>
</html> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询