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

在vue中使用html5plus

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

不废话,直接上代码。

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


分享给朋友:

相关文章

php跨域代码,欣达CMS专用版

php跨域代码,欣达CMS专用版

核心代码(php)header('Access-Control-Allow-Origin:*'); header('Access-Control-Allow-Credenti...

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

网站压力测试之ab命令

一、什么是ab?ab是apachebench命令的缩写。ab的原理:ab命令会创建多个并发访问线程,模拟多个访问者同时对某一URL地址进行访问。它的测试目标是基于URL的,因此,它既可以用来测试apa...

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

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

发表评论

访客

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