2013-02-12 73 views
0

有開始了一些問題與資源解釋爲文檔,但與MIME類型的音頻/ MPEG傳輸

Resource interpreted as Document but transferred with MIME typeaudio/mpeg

我有一個JavaScript函數,它扮演我的聲音。偉大的作品,簡單而輕薄。

function Play(mp3Path) 
{ 
    $("#sound_").remove(); 
    $('#soundEvent').html('<embed id="sound_" autostart="true" hidden="true" 
     src="' + mp3Path + '" type="audio/mpeg" />'); 
    //Line above formatted for readability 
} 

當我執行上述功能時,我在鉻中得到以下警告。
Resource interpreted as Document but transferred with MIME type audio/mpeg

enter image description here

我嘗試修復包括增加type屬性來嵌入元件。

有沒有辦法擺脫那個警告沒有代碼或去HTML5/Flash的重大變化?

回答

0

你不能,擺脫警告買你可以將其隱藏:

console.groupCollapsed(' ');console.log('just example');console.groupEnd(); console.log('b') 
+0

聽起來前途。不工作。 – 2013-02-12 09:23:12

相關問題