内容简介:You can configure MusicKit JS with a default markup setup to quickly get you started with the library, or with JavaScript to give you more control over the customization of your player.To configure the library using only markup, use the following meta tags
You can configure MusicKit JS with a default markup setup to quickly get you started with the library, or with JavaScript to give you more control over the customization of your player.
To configure the library using only markup, use the following meta tags:
<head> ... <meta name="apple-music-developer-token" content="DEVELOPER-TOKEN"> <meta name="apple-music-app-name" content="My Cool Web App"> <meta name="apple-music-app-build" content="1978.4.1"> ... </head>
For more control over the library and player, use JavaScript to configure the library:
document.addEventListener('musickitloaded', function() { // MusicKit global is now defined MusicKit.configure({ developerToken: 'DEVELOPER-TOKEN', app: { name: 'My Cool Web App', build: '1978.4.1' } }); });
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
赢在设计
[美] 洛芙迪 (Lance Loveday)、[美] 尼豪斯 (Sandra Niehaus) / 刘淼、枊靖、王卓昊 / 人民邮电出版社 / 2010-8 / 55.00
企业总是面临在网站设计和改进方面进行投资的抉择。怎样才能让有限的资金发挥出最大的效益呢?网站设计不应只是把网站做得赏心悦目,它更应该是提高经济收益和获得竞争优势的战略利器。是时候让网站发挥其潜能,以业务指标为导向来做设计决策,为提升网站收益而设计了。 作者凭借多年为众多网站做咨询工作的经验,为我们揭示了赢在设计的奥秘。它针对目前网站设计中存在的典型问题,先从宏观上探讨解决问题的战略手段,围绕......一起来看看 《赢在设计》 这本书的介绍吧!