parent
411cd3f1b4
commit
8ca3de2f0d
10 changed files with 129 additions and 21 deletions
After Width: | Height: | Size: 702 B |
@ -0,0 +1,12 @@ |
||||
//构建本地图片路径
|
||||
function getObjectURL(file) { |
||||
var url = null ; |
||||
if (window.createObjectURL!=undefined) { |
||||
url = window.createObjectURL(file) ; |
||||
} else if (window.URL!=undefined) { |
||||
url = window.URL.createObjectURL(file) ; |
||||
} else if (window.webkitURL!=undefined) { |
||||
url = window.webkitURL.createObjectURL(file) ; |
||||
} |
||||
return url ; |
||||
} |
Loading…
Reference in new issue