我正在尝试使用Javascript下的Window Open打开新标签,如下所示:
$.ajax({type: "POST",url:"GetData.php?m="+e.series.key,
dataType: "json"}).done
(function( FolderPath )//i get the folder path under this variable
{
OpenInNewTab(url);//url="file://///NetworkSharePath/Folder1/Folder2" -->URL Value
});
function OpenInNewTab(url) {
var win = window.open(url , '_blank');
win.focus();
}
观察: 它会打开一个新的Tab但不是所需的Path。 注意: