欢迎各位兄弟 发布技术文章
这里的技术是共享的
<!-- oscar999 -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="author" content="oscar999">
<title></title>
<script>
function handleFiles(files)
{
if(files.length)
{
var file = files[0];
var reader = new FileReader();
reader.onload = function()
{
document.getElementById("filecontent").innerHTML = this.result;
};
reader.readAsText(file);
}
}
handleFiles(this.files);
</script>
</head>
<body>
<input type="file" id="file" onchange="handleFiles(this.files)" />
<div id="filecontent"></div>
</body>
</html>
来自 https://blog.csdn.net/weixin_46037781/article/details/118710615
https://www.codenong.com/8390855/
https://blog.csdn.net/Rotbing/article/details/55004833
https://www.qycn.com/xzx/article/15315.html
https://blog.csdn.net/commandboy/article/details/55680654