Skip to content
This repository has been archived by the owner on Jun 6, 2020. It is now read-only.

在IE10 this.$refs.player.dp值为空 #23

Open
no-simple opened this issue May 4, 2018 · 1 comment
Open

在IE10 this.$refs.player.dp值为空 #23

no-simple opened this issue May 4, 2018 · 1 comment

Comments

@no-simple
Copy link

参照您的写法
mounted() {
this.player = this.$refs.player.dp
}
但在IE10上报 this.$refs.player.dp 值为空,导致无法切换视频(switchVideo)或通过play()、pause()函数来启动暂定。

@SocolaDaiCa
Copy link

you shound bind options to d-player
http://dplayer.js.org/#/home?id=options

<template>
    <d-player :options="options" ref="player"></d-player>
</template>
<script>
'use strict';
import VueDPlayer from 'vue-dplayer'
import 'vue-dplayer/dist/vue-dplayer.css'
export default {
    components: {
        'd-player': VueDPlayer
    },
    data() {
        return {
            options: {

            },
        }
    }
}
</script>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants