我做一个图片管理的页面,要在双击图片标题的时候打开本地图片所在的文件夹
Double click here:
echo '<tr><td>';
echo '<div ondblclick="openimgdir(event)">';
echo dirname($tempdir);
echo '</div></td></tr>';
at Open the passed path in the openimgdir function
var obj=event.srcElement;
var direname=obj.innerHTML
// var filename="E:"
try{
var obj = new ActiveXObject("wscript.shell")
if(obj){
obj.Run(direname,1,false )
obj = null
}
}catch(e){
alert("Please confirm whether the file or drive letter exists")
}
After writing this, it still cannot be opened
查无此人2019-03-28 17:43:16
Is this folder for linux or windows? Check to see if there is no permission.