<tfoot id='ByDh0'></tfoot>
      <legend id='ByDh0'><style id='ByDh0'><dir id='ByDh0'><q id='ByDh0'></q></dir></style></legend>

        • <bdo id='ByDh0'></bdo><ul id='ByDh0'></ul>

      1. <small id='ByDh0'></small><noframes id='ByDh0'>

        <i id='ByDh0'><tr id='ByDh0'><dt id='ByDh0'><q id='ByDh0'><span id='ByDh0'><b id='ByDh0'><form id='ByDh0'><ins id='ByDh0'></ins><ul id='ByDh0'></ul><sub id='ByDh0'></sub></form><legend id='ByDh0'></legend><bdo id='ByDh0'><pre id='ByDh0'><center id='ByDh0'></center></pre></bdo></b><th id='ByDh0'></th></span></q></dt></tr></i><div id='ByDh0'><tfoot id='ByDh0'></tfoot><dl id='ByDh0'><fieldset id='ByDh0'></fieldset></dl></div>

        带有 iframe 的 AngularJs

        时间:2023-09-06

        <small id='TOA75'></small><noframes id='TOA75'>

        1. <tfoot id='TOA75'></tfoot>
                <tbody id='TOA75'></tbody>
              <i id='TOA75'><tr id='TOA75'><dt id='TOA75'><q id='TOA75'><span id='TOA75'><b id='TOA75'><form id='TOA75'><ins id='TOA75'></ins><ul id='TOA75'></ul><sub id='TOA75'></sub></form><legend id='TOA75'></legend><bdo id='TOA75'><pre id='TOA75'><center id='TOA75'></center></pre></bdo></b><th id='TOA75'></th></span></q></dt></tr></i><div id='TOA75'><tfoot id='TOA75'></tfoot><dl id='TOA75'><fieldset id='TOA75'></fieldset></dl></div>

                <bdo id='TOA75'></bdo><ul id='TOA75'></ul>
                <legend id='TOA75'><style id='TOA75'><dir id='TOA75'><q id='TOA75'></q></dir></style></legend>

                1. 本文介绍了带有 iframe 的 AngularJs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  为什么 这个 jsfiddle 不起作用?我无法获得 videoId 的值.如果我从模块中删除 ngRoute 那么它工作正常.

                  Why this jsfiddle is not working? I am not able to get value of videoId. If I remove ngRoute from module then it is working fine.

                  推荐答案

                  你需要像这样使用ng-src:

                  <div ng-controller="AppController">
                      <h1>{{videoID}}</h1>
                      <iframe class="youtube-player" type="text/html" width="auto"
                      height="auto" ng-src="{{videoID}}"
                      allowfullscreen="" frameborder="0"> </iframe>
                  </div>
                  

                  var app = angular.module('my-app', []);
                  app.controller('AppController', function ($scope, $sce) {  
                      $scope.videoID = $sce.trustAsResourceUrl('http://www.youtube.com/embed/C0DPdy98e4c');
                  });
                  

                  请参阅本文档.

                  这篇关于带有 iframe 的 AngularJs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何制作 YouTube 无铬播放器? 下一篇:Youtube 嵌入视频开始和结束问题

                  相关文章

                  1. <small id='OCFJZ'></small><noframes id='OCFJZ'>

                    <legend id='OCFJZ'><style id='OCFJZ'><dir id='OCFJZ'><q id='OCFJZ'></q></dir></style></legend><tfoot id='OCFJZ'></tfoot>
                      <bdo id='OCFJZ'></bdo><ul id='OCFJZ'></ul>

                    <i id='OCFJZ'><tr id='OCFJZ'><dt id='OCFJZ'><q id='OCFJZ'><span id='OCFJZ'><b id='OCFJZ'><form id='OCFJZ'><ins id='OCFJZ'></ins><ul id='OCFJZ'></ul><sub id='OCFJZ'></sub></form><legend id='OCFJZ'></legend><bdo id='OCFJZ'><pre id='OCFJZ'><center id='OCFJZ'></center></pre></bdo></b><th id='OCFJZ'></th></span></q></dt></tr></i><div id='OCFJZ'><tfoot id='OCFJZ'></tfoot><dl id='OCFJZ'><fieldset id='OCFJZ'></fieldset></dl></div>