前端之家收集整理的这篇文章主要介绍了
用input[type=file]上传图片时,处理路径的兼容函数,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
<table class="javascript"><tbody><tr class="li1">
<td class="ln"><pre class="de1">1
2
3
4
5
6
7
8
9
10
11
12
获取
上传图片的地址
函数
getUrlsourceId
url
navigator.. =
url document.sourceId.
navigator..
url window..document.sourceId..
navigator..
url window..document.sourceId..
url