mark 页面中药突出显示的,一般要显示的内容与页面关系不大
em strong 是突出显示这一段内容的重要性,而mark 一般显示的内容与文章关系不大。
<input type="file" id="file" multiple size="80" />
<button type="button" onClick="ceh()">提交</button>
<script>
function ceh()
{
var file;
var i;
for(i=0;i<document.getElementById("file").files.length;i++)
{
file=document.getElementById("file").files[i];
alert(file.name);
}
}
</script>
本文介绍了一种使用HTML中的mark元素来突出显示文本的方法,并提供了一个文件上传的示例代码,展示了如何通过JavaScript遍历并获取所选文件的名字。
975

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



