这个问题是关于 Javascript 为视频播放器编写 HTML 代码的。我认为有一些更快的方法(document.createElement、Jquery 等)。请告诉这个过程一些更好更快的方法。提前致谢
function createPlayer(videoSource){
document.writeln("<div id=\"player\">");
document.writeln("<object width=\"489\" height=\"414\" >");
document.writeln("<param name=\"player\" value=\"bin- debug/FlexPlayer.swf\">");
//etc
document.writeln("</embed>");
document.writeln("</object>");
document.writeln("</div>");
}