您好,能具体描述您的需求吗,加了button您需要做什么 ?
如下代码点击button后是由事件触发的
var div = document.createElement('div');
div.innerHTML = "<span > <button onclick='alert(window)'>aaa</button>SpreadJS support CustomFloatingObject.</span><div style='border: 1px dotted red; width: 80%; margin:auto;'><ul><li>I am list one.</li><li>I am list two.</li><li>I am list three.</li></ul></div>";
$(div).css('background', 'gray');
customFloatingObject.Content(div);
|