您现在的位置:首页 >> 前端 >> 内容

上传文件,用js回调函数实现隐藏inputtype=file

时间:2018/1/19 15:11:48 点击:

  核心提示:上传文件,用js回调函数实现隐藏inputtype=file,虽然不值一提,但想记下来了js:script type=text/html:input type=file id=fileurl ...

上传文件,用js回调函数实现隐藏inputtype="file",虽然不值一提,但想记下来了

js:

<script type="text/javascript">

html:

<input type="file" id="fileurl" name="fileurl" style="display:none;"/>

就这样,其他不写了

作者:网络 来源:u012424642