Commit 3e04856a by 赵天增

点击事件

parent 8afda0c4
......@@ -59,8 +59,9 @@
<a href="${instance.url}" target="_blank">${instance.id}</a>
<#else>
${instance.id}
</#if><#if instance_has_next>,</#if>
<button id="cc" type="button" onclick="close(${instance.id})">关闭</button>
</#if>
<button class="cc" type="button" onclick="close()">关闭</button>
<#if instance_has_next>,</#if>
</#list>
</#list>
</td>
......@@ -122,9 +123,11 @@
<script type="text/javascript" src="eureka/js/wro.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#cc').click(function () {
$('.cc').click(function () {
debugger;
alert("弹出成功")
/*alert("弹出成功")*/
var str = $(this).prev().text();
console.log(str);
});
$('table.stripeable tr:odd').addClass('odd');
$('table.stripeable tr:even').addClass('even');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment