[問題] 新手問題js

看板Web_Design作者 (B.Milk)時間8年前 (2017/02/04 00:23), 8年前編輯推噓2(206)
留言8則, 2人參與, 最新討論串1/2 (看更多)
好吧,小弟真的爬文爬很久了,所以才上來問,對js真的不會,所以上來問 小弟目前在用 google drive影片 用videojs播放器播出來的 影音網頁 小弟的code是這樣 <video id='example_video_1' class="video-js vjs-default-skin"width="1385"></video> <script> videojs('example_video_1', { controls: true, plugins: { videoJsResolutionSwitcher: { default: 'high', // Default resolution [{Number}, 'low', 'high'], dynamicLabel: false } } }, function(){ var player = this; window.player = player player.updateSrc ( /*需要插入的外部網址的地方*/ ) player.on('resolutionchange', function(){ console.info('Source changed to %s', player.src()) }) }) </script> https://goo.gl/IYeus6圖片好讀,請問要怎麼把drive轉出來的連結code https://goo.gl/1Cf21h加入到上面的code裡面呢 p.s為什麼不直接把網頁裡面的code複製到裡面呢,因為他code每段時間會變。 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 36.234.204.67 ※ 文章網址: https://www.ptt.cc/bbs/Web_Design/M.1486138989.A.77C.html ※ 編輯: tregfd654321 (36.234.204.67), 02/04/2017 00:26:04 ※ 編輯: tregfd654321 (36.234.204.67), 02/04/2017 00:26:37 ※ 編輯: tregfd654321 (36.234.204.67), 02/04/2017 00:28:06

02/04 22:58, , 1F
QQ 求助鄉民
02/04 22:58, 1F

02/05 12:27, , 2F
用file裡面的網址可以嗎?
02/05 12:27, 2F

02/05 12:54, , 3F
不行,他裡面的網址是隨時都會變的,複製下來,2小
02/05 12:54, 3F

02/05 12:54, , 4F
時後又不能用了,唯一不會變的只有看這個code的網址
02/05 12:54, 4F

02/05 12:54, , 5F
,在js裡面連結外部code會很難嗎
02/05 12:54, 5F

02/05 17:52, , 6F

02/05 17:52, , 7F
那可能要用這種方式,先從code網址取json檔,再取file的值
02/05 17:52, 7F

02/05 17:53, , 8F
如果還是不會的話說一下,用回文的方式比較好打
02/05 17:53, 8F
回文是這樣嗎?已站內信給大大 ※ 編輯: tregfd654321 (36.234.197.238), 02/05/2017 20:35:46
文章代碼(AID): #1ObAvjTy (Web_Design)
討論串 (同標題文章)
以下文章回應了本文
完整討論串 (本文為第 1 之 2 篇):
文章代碼(AID): #1ObAvjTy (Web_Design)