<a>標簽中的href中,如果你寫一個路徑默認是以相對路徑打開的,加上"http://" 消息頭那就可以打開絕對路徑
html:
<a href=javascript:void(0); target=_blank onclick=Common.openUrl("' + rowObject.baiduPanUrl + '")>' + cellvalue + '</a>'
js:
openUrl: function(url) { if (url.indexOf("http") != 0) { window.open("http://" + url); } else { window.open(url); } }