方法1:
navigator.clipboard.writeText(editor.getValue());
$(“.tag-layout”).html(opt); 动态添加的html会导致jquery监听的事件无法响应到如:
$(".tag-description").bind("dblclick", function() {
...
});
可以修改为通过如下方式监听:
$(document).on("dblclick",".tag-description",function(){
...
});
![]() |
![]() |
2023 |
![]() |
![]() |
1970 |
![]() |
![]() |
1763 |
4 |
![]() |
1718 |
5 |
![]() |
1710 |
6 |
![]() |
1701 |
7 |
![]() |
1684 |
8 |
|
1678 |
9 |
![]() |
1664 |
10 |
![]() |
1653 |