Add javascript variable to javascript src?

后端 未结 5 763
暗喜
暗喜 2021-01-19 19:38

this may sound a bit noobish, but I\'m trying to retrieve the video information for a YouTube video (I saw in some tutorial) basically here\'s the code

             


        
5条回答
  •  礼貌的吻别
    2021-01-19 20:06

    Though CDATA works fine, using document.createElement is also a great choice.. Especially if you intend to append some value to a URL, say for cache busting..

    
    

    Have fun.. :)

提交回复
热议问题