function navigationLeft(){
window.open("https://www.baidu.com");
}
function showData(d, callback) {
console.log(d);
sheet.suspendPaint();
var h1 = new spreadNS.CellTypes.HyperLink();
//h1.text("SpreadJS Overview");
h1.command(navigationLeft());
sheet.setCellType(12, 2, h1);
sheet.getCell(12, 2).hAlign(spreadNS.HorizontalAlign.center);
}
为h1添加的command事件报错 而且command添加的链接在打开表格后1秒内自动跳转打开,请问怎么写才能让command事件再单击后才打开
|
|