如何有效地將所有 HTML5 影片源指定為可信,而不需要全部迴圈


在 HTML5 中新增一些配置來指定影片的可信度

app.config(function($sceDelegateProvider) {
   $sceDelegateProvider.resourceUrlWhitelist([

   // allowing same origin resource loads
   'self',

   // allowing loading from our assets domain
   'http://media.w3.org/**']);
});

更新於: 29-1 月 -2020

57 次觀看

開始你的職業

透過學習課程獲得認證

入門
廣告
© . All rights reserved.