Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

请问如何用js的方式来调用 #77

Open
vioa opened this issue Dec 7, 2022 · 2 comments
Open

请问如何用js的方式来调用 #77

vioa opened this issue Dec 7, 2022 · 2 comments

Comments

@vioa
Copy link

vioa commented Dec 7, 2022

比如aplayer可以这样

const ap = new APlayer({
    container: document.getElementById('aplayer'),
    audio: [{
        name: 'HLS',
        artist: 'artist',
        url: 'url.m3u8',
        cover: 'cover.jpg',
        type: 'hls'
    }]
});

meetjs应该如何用js直接调用呢

	server="netease"
	type="playlist"
	id="60198">
//这个怎么用js写,因为系统内的博客,无法改html只能用js注入
@ScarletDor
Copy link

请问解决了么,我也卡这个了

@wangyang0210
Copy link

动态引入对应的cdn资源后,然后通过append去插入元素;
https://github.com/wangyang0210/cnblogs-theme/blob/v2/src/components/footer/footer.js

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants