0

如何向信息模板添加关闭按钮?

// My info template looks like this, 't' and 'Description' are variables

var infoTemplate1 = new esri.InfoTemplate(Title + ' - ' + t,"Description:" + "<br>" + Description);
4

1 回答 1

0

添加:

<button dojoType='dijit.form.Button' onClick='javascript:window.close();''>Done</button>")

有关更多信息,请参阅此链接

祝你好运!!

于 2012-07-31T03:16:41.627 回答