將所有 HTML5 影片源指定為可信的最高效方法是什麼,而無需遍歷所有來源


新增一些配置以信任您在 HTML5 中的影片

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

   // allowing same origin resource loads
   'self',

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

更新於: 2020 年 1 月 29 日

57 次瀏覽

開啟您的 職業

完成課程獲得認證

開始
廣告
© . All rights reserved.