在加载带有对象标签的内嵌svg时,我想向对象标签添加click事件,但是效果不佳。
由于内嵌svg已在内嵌svg中设置了事件,因此无法使用this answer中的pointer-events: none;
。
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$(function() {
$("#nav-toggle").on('click', function(event) {
alert("hey!"); /* not fired */
});
});
</script>
<header id="header">
<button type="button" class="menuButton" aria-controls="global-nav" aria-expanded="false" id="toggle">
<object type="image/svg+xml" data="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0OCA0OCIgaGVpZ2h0PSI0OCIgd2lkdGg9IjQ4IiBpZD0idG9nZ2xlLWIiPgogICAgPGcgY2xhc3M9Im5jLWljb24td3JhcHBlciBqcy10cmFuc2l0aW9uLWljb24iIGRhdGEtZWZmZWN0PSJyb3RhdGUiIGRhdGEtZXZlbnQ9ImNsaWNrIiBpZD0iaG9nZSI+CiAgICAgICAgPGcgY2xhc3M9ImpzLXRyYW5zaXRpb24taWNvbl9fc3RhdGUiIGZpbGw9IiMxMTExMTEiIHN0eWxlPSIiIGlkPSJ0b2dnbGUiPgogICAgICAgIDxwYXRoIGQ9Ik0yNCAxNkwxMiAyOGwyLjgzIDIuODNMMjQgMjEuNjZsOS4xNyA5LjE3TDM2IDI4eiIgaWQ9InVwIj48L3BhdGg+CiAgICA8L2c+CiAgICA8ZyBjbGFzcz0ianMtdHJhbnNpdGlvbi1pY29uX19zdGF0ZSIgZmlsbD0iIzExMTExMSIgc3R5bGU9ImRpc3BsYXk6IG5vbmU7IiBhcmlhLWhpZGRlbj0idHJ1ZSI+CiAgICAgICAgPHBhdGggZD0iTTMzLjE3IDE3LjE3TDI0IDI2LjM0bC05LjE3LTkuMTdMMTIgMjBsMTIgMTIgMTItMTJ6IiBpZD0iZG93biI+PC9wYXRoPgogICAgPC9nPgogICAgPC9nPgogICAgPHNjcmlwdD4hZnVuY3R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y5zaXplLndpZHRoKm4vMisiICIrdGhpcy5zaXplLmhlaWdodCpuLzIrIikgc2NhbGUoIisoMS1uKSsiKSIpfSx0LnByb3RvdHlwZS5yb3RhdGVJY29uPWZ1bmN0aW9uKHQsaSxlKXt2YXIgcz1yKHQsMCwxODAsdGhpcy50aW1lLnRvdGFsKS50b0ZpeGVkKDIpO3RoaXMuc3RhdGVzW2ldLnNldEF0dHJpYnV0ZSgidHJhbnNmb3JtIiwicm90YXRlKC0iK3MrIiAiK3RoaXMuc2l6ZS53aWR0aC8yKyIgIit0aGlzLnNpemUuaGVpZ2h0LzIrIikiKSx0aGlzLnN0YXRlc1tlXS5zZXRBdHRyaWJ1dGUoInRyYW5zZm9ybSIsInJvdGF0ZSgiKygxODAtcykrIiAiK3RoaXMuc2l6ZS53aWR0aC8yKyIgIit0aGlzLnNpemUuaGVpZ2h0LzIrIikiKX07dmFyIGk9ZG9jdW1lbnQucXVlcnlTZWxlY3RvckFsbCgiLmpzLXRyYW5zaXRpb24taWNvbiIpO2lmKGkpZm9yKHZhciBzPTA7aS5sZW5ndGgmZ3Q7cztzKyspbmV3IHQoaVtzXSl9KCk7PC9zY3JpcHQ+CgoKPC9zdmc+" width="48" height="48" id="nav-toggle"></object>
</button>
</header>
代表也没有工作。
此外,在实际代码中,button
元素不能用作点击事件的目标。
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$(function() {
$(document).on('click', '#nav-toggle', function(event) {
alert("hey!");
});
});
</script>
<header id="header">
<button type="button" class="menuButton" aria-controls="global-nav" aria-expanded="false" id="toggle">
<object type="image/svg+xml" data="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0OCA0OCIgaGVpZ2h0PSI0OCIgd2lkdGg9IjQ4IiBpZD0idG9nZ2xlLWIiPgogICAgPGcgY2xhc3M9Im5jLWljb24td3JhcHBlciBqcy10c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lzLnNpemUuaGVpZ2h0LzIrIikiKX07dmFyIGk9ZG9jdW1lbnQucXVlcnlTZWxlY3RvckFsbCgiLmpzLXRyYW5zaXRpb24taWNvbiIpO2lmKGkpZm9yKHZhciBzPTA7aS5sZW5ndGgmZ3Q7cztzKyspbmV3IHQoaVtzXSl9KCk7PC9zY3JpcHQ+CgoKPC9zdmc+" width="48" height="48" id="nav-toggle"></object>
</button>
</header>
如何在不禁用嵌入式SVG中的指针事件的情况下将click事件应用于对象元素?
修改
我看到了这个问题,但这一次不起作用。
How to bind click event to object tag?
这是因为委托不起作用,并且svg中的事件不适用于img
元素(请参见下面的代码段)。它必须在object元素上完成。
$('#nav-toggle').on('click', function(e) {
console.log("hey!"); // this alert is work, but svg's animation does'nt work!
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<button type="button" class="menuButton" aria-controls="global-nav" aria-expanded="false" id="toggle">
<img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0OCA0OCIgaGVpZ2h0PSI0OCIgd2lkdGg9IjQ4IiBpZD0idG9nZ2xlLWIiPgogICAgPGcgY2xhc3M9Im5jLWljb24td3JhcHBlciBqcy10cmFuc2l0aW9uLWljb24iIGRhdGEtZWZmZWN0PSJyb3RhdGUiIGRhdGEtZXZlbnQ9ImNsaWNrIiBpZD0iaG9nZSI+CiAgICAgICAgPGcgY2xhc3M9ImpzLXRyYW5zaXRpb24taWNvbl9fc3RhdGUiIGZpbGw9IiMxMTExMTEiIHN0eWxlPSIiIGlkPSJ0b2dnbGUiPgogICAgICAgIDxwYXRoIGQ9Ik0yNCAxNkwxMiAyOGwyLjgzIDIuODNMMjQgMjEuNjZsOS4xNyA5LjE3TDM2IDI4eiIgaWQ9InVwIj48L3BhdGg+CiAgICA8L2c+CiAgICA8ZyBjbGFzcz0ianMtdHJhbnNpdGlvbi1pY29uX19zdG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