当前位置:首页 > 服务器运维

在vue中使用html5plus

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

不废话,直接上代码。

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

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、临时挂载mount -t…

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

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

debian安装orcale支持库

官方说明https://pecl.php.net/package/oci8安装基础环境apt-get install libaio1 apt-get install&n…

发表评论

访客

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