当前位置:首页 > 服务器运维 > 正文内容

在vue中使用html5plus

Z先生6年前 (2020-04-24)服务器运维1132

不废话,直接上代码。

<script>
export default {
    name: 'App',
    created() {
        if (window.plus) {
            this.plusReady();
        } else {
            document.addEventListener('plusready', this.plusReady, false);
        }
    },
    mounted() {},
    updated() {},
    methods: {
        plusReady() {
            //plus代码写到这里
            console.log('hello plus');
        }
    }
};
</script>


分享给朋友:

相关文章

西部数码有多垃圾,这里不想说了!

西部数码有多垃圾,这里不想说了!

西部数码有多垃圾,这里不想说了!所谓的独立单核,独享1G内存,峰值宽带12M这一切都是幌子罢了。一套老程序:ASP+ACCESS数据库(550m左右大小)。动不动就访问不到,有问必答提交后,就不停的建...

npm node-sass 报错的处理方案

第一步npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/第二步n...

一些低危提示漏洞的处理

无关痛痒的一些漏洞HTTP X-XSS-Protection 响应头缺失HTTP X-Download-Options 响应头缺失HTTP X-Content-Type-Options 响应头缺失HT...

Centos GIT强制更新、默认保存密码

输入一下命令,运行的时候,第一输入正确的账号密码系统会自动记录git config --global credential.helper store克隆git clone http://git地址.g...

Ceontos挂载Windows共享当本地硬盘使用

1、自动挂载 //192.168.128.1/wwwroot /wwwroot cifs defaults,username=user,password=000000 0 02、临时挂载...

【原创】Windows10+WSL配置本地PHP测试环境

为什么?我为什么要这样做为什么不直接在win环境下搭建呢?个人原因有一下两点 php的某些功能只有在linux下才能更好的体现,比如Workerman下的GatewayWorker 我自己办公...

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。
请先 登录 再评论,若不是会员请先 注册