<%@ page contentType="text/htmlcharset=UTF-8"%>
<html>
<head>
<script type="text/javascript" src="jquery-1.4.2.min.js"></script>
<link href="index.css" rel="stylesheet">
</head>
<body>
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><button value="onclick" onclick="audio()">onclick</button>
</td>
</tr>
<tr>
<td><div id="f"></div></td>
</tr>
</table>
<script src="audio.min.js"></script>
<script>
audiojs.events.ready(function() {
audiojs.createAll()
})
</script>
<script type="text/javascript">
function audio() {
var a = '<audio id="d" src = "123.mp3" controls>'
$("#f").html(a)
}
</script></body>
</html>
这样写,js一般放到后面加载
$('<div />',{id:citycode,
html: '<a href="">cityname</a>'
}).appendTo("#"+provincecode)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)