转自:https://juejin.cn/post/6844903821395623944

梳理下常见的不冒泡事件

load 异步 不冒泡 ❌
unload 不冒泡 ❌
abort 不冒泡 ❌
error 异步 不冒泡 ❌
blur 不冒泡 ❌
focus 不冒泡 ❌
mouseenter 不冒泡 ❌
mouseleave 不冒泡 ❌
DOMNodeInsertedIntoDocument 不冒泡 ❌
DOMNodeRemovedFromDocument 不冒泡 ❌
invalid 不冒泡 ❌
blocked 不冒泡 ❌
close 不冒泡 ❌
complete 不冒泡 ❌
success 不冒泡 ❌
upgradeneeded 不冒泡 ❌
versionchange 不冒泡 ❌
play 不冒泡 ❌
mute 不冒泡 ❌
selectionchange 不冒泡 ❌

html5 的 drag & drop 或 touch 事件则是冒泡的

button class="btn" data-clipboard-text="123456"
click to copy
button

new Clipboard('.btn');
$('.btn').trigger('click');
// nothing to happen

应该是浏览器的安全限制,要有一个event才执行剪切板的相关操作,这里的event需要注意,用js代码创建的event 和 用户交互式(即用户正常鼠标点击)产生的event有一定的区别的。比如,
This is the browser's security limit,we need a truth event to operate clipborad,it is a different obj from event which created by your program(like js code),such as:

domXxx.click(); // domXxx.onClick();
$('.xx').click();   // $('.xx').trigger('click');

等,都是不会让copy效果生效的,clipboard.js 会抛error
It unwork and you will catch a error.
这里有说明的
See the detail in this link.
wiki/Known-Limitations

重点:有一种曲线救国的方式:

function clipboard(text, event) {
        const cb = new Clipboard('.null', {
            text: () => text
        });
        cb.on('success', function(e) {
            console.log(e);
            cb.off('error');
            cb.off('success');
        });
        cb.on('error', function(e) {
            console.log(e);
            cb.off('error');
            cb.off('success');
        });
        cb.onClick(event);
}

用法:

let domNode = document.getElementById('yourBtn');
domNode.addEventListener('click', event => clipboard('some text you need copy', event));

转自:https://www.m135.com/news/3291.html

随便点了一个下方的链接:有效
http://lzizy.net/help/#wlcome

亲速度还可以:有效
https://www.taopianzy.com/help.html

本站推荐采集源站点:

量子资源网:http://lzizy.net/help/ (秒播、资源稳定、更新及时、少量跑马灯水印广告)

淘片资源网:https://www.taopianzy.com/home/help.html (秒播、资源稳定、更新及时、少量跑马灯水印广告)

新浪资源网:https://www.xinlangzy.com/help/ (秒播、资源稳定、更新及时、少量跑马灯水印广告)

快车资源网:https://help.kczyapi.com/ (秒播、资源稳定、更新及时、少量跑马灯水印广告)

天猫资源网:https://tianmaozy.com/help/ (秒播、资源稳定、更新及时、少量跑马灯水印广告)

68资源网:https://68zy11.com/?iqshg (秒播、资源稳定、更新及时、少量跑马灯水印广告)

虎牙资源网:http://huyazy.net/help/ (秒播、资源稳定、更新及时、少量跑马灯水印广告)

金鹰资源网:https://jinyingzy.net/help/ (秒播、资源稳定、更新及时、少量跑马灯水印广告)

光速资源网: https://www.guangsuzy.com/help/ (秒播、资源稳定、更新及时、少量跑马灯水印广告)

速播资源网:https://www.subozy1.com/index.php/help/index.html (秒播、资源稳定、更新及时、少量跑马灯水印广告)

大漠资源网:https://damozy2.com/ (秒播、资源稳定、更新及时、少量跑马灯水印广告)

188资源网:https://188zy.org/help/ (秒播、资源稳定、更新及时、少量跑马灯水印广告)

tvbox安装上不能直接看的,需要配置资源源地址,可自己搭也可以用别个维护的

安装好app后,点开设置,在第二行看到配置地址,把在线配置地址填写进去就可以了。

tvbox接口
接口收集:https://xduo.app/box/api/

序号    接口    描述    维护者
1    https://yydsys.top/duo    多多家庭接口    站长大聪明
2    https://raw.liucn.cc/box/m.json    老刘备    liucn
3    http://我不是.肥猫.love:63/接口禁止贩卖    持续维护    肥猫
4    https://agit.ai/Yoursmile7/TVBox/raw/branch/master/XC.json    终南干货群    南风
5    http://饭太硬.top/tv  神器推送    饭太硬
6    http://home.jundie.top:81/top98.json    俊佬接口    于俊
7    https://gh.t4tv.hz.cz/newtang.bmp    持续维护    唐三
8    https://tvbox.cainisi.cf    持续维护    菜妮丝
9    https://raw.iqiq.io/lm317379829/PyramidStore/pyramid/py.json    持续维护    霜辉月明
10    https://raw.iqiq.io/kebedd69/TVbox-interface/main/甜蜜.json    持续维护    dlgt7
11    https://dxawi.github.io/0/0.json    持续维护    dxawi/github️
12    http://101.34.67.237/config/3    持续维护    小雅JS
13    https://raw.iqiq.io/FongMi/CatVodSpider/main/json/config.json    持续维护    蜂蜜
14    https://download.kstore.space/download/2863/01.txt    持续维护    潇洒
15    https://download.kstore.space/download/2883/m3u8/dsj/guochan/mp1/1.m3u8    蚂蚁论坛    D大
16    https://agit.ai/n/b/raw/branch/a/b/c.json    abc线路    未知主人
17    http://xhww.fun:63/小米/DEMO.json    持续维护    小米线路
18    http://itvbox.cc/tvbox/云星日记/1.m3u8    云星家庭版接口    云星日记