欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

js 火狐下取本地路徑實現(xiàn)思路

 更新時間:2013年04月02日 16:08:29   作者:  
火狐下取本地全路徑使用js代碼實現(xiàn),感興趣的朋友可以參考下哈,希望可以幫助到你
復(fù)制代碼 代碼如下:

/* 火狐下取本地全路徑 */
function getFullPath(obj)
{
if(obj)
{
//ie
if (window.navigator.userAgent.indexOf("MSIE")>=1)
{
obj.select();
return document.selection.createRange().text;
}
//firefox
else if(window.navigator.userAgent.indexOf("Firefox")>=1)
{
if(obj.files)
{
//return obj.files.item(0).getAsDataURL();
return window.URL.createObjectURL(obj.files[0]);
}
return obj.value;
}
return obj.value;
}
}

相關(guān)文章

最新評論