0
Try
{
myTextTrack = myPlayer.addTextTrack('subtitles','myLabel','en');
} catch(err)
{
alert('This browser does not support the comments on the video.');
return;
}
以上應該會觸發IE中的警報(不在Chrome中)。但它會給腳本語法錯誤。代碼由asp.net生成,然後插入,所以在每行之後都有回車/換行符。但那不應該。爲什麼在IE中嘗試/抓住javascript失敗
這就是代碼的樣子,即。 '嘗試'而不是'嘗試'? – Hasturkun 2013-02-24 17:17:54