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

在vue中使用html5plus

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

不废话,直接上代码。

<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>


分享给朋友:

相关文章

npm node-sass 报错的处理方案

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

php支持PDO链接MSSQL数据库

php支持PDO链接MSSQL数据库

1、所需插件和驱动(1)DOBC Driver官方地址:https://docs.microsoft.com/en-us/sql/connect/odbc/download-odbc-driver-f...

一些低危提示漏洞的处理

无关痛痒的一些漏洞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...

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

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

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。