音频文件:
一、谷歌浏览器、火狐浏览器等:使用H5的“audio”标签
<audio src="文件路径" controls="controls" width="50px"></audio>
二、IE浏览器:使用embed标签替代audio标签
<embed id="a_player_ie8" type="audio/mpeg" src="文件路径" autostart="false"></embed>
三、在jeecg框架中,<t:dgCol>中的使用方式:
<t:dgCol title="消息内容" field="content" width="320" formatterjs="yuyin"></t:dgCol>
<script type="text/javascript">
function yuyin(value,row){
if(!value){
return "";
}
return "<audio src='"+value+"' controls='controls' width='50px'></audio>";
}
<script>
视频文件:
<video width='50' height='50' controls='controls'><source src='文件路径' type='audio/mp4'></video>
6785

被折叠的 条评论
为什么被折叠?



