方法一: 複製程式碼 程式碼如下: html>html> 🎜><br><br>//初始化迅雷插件<br><br>function InitialActiveXObject()<br><br>{ <br><br> var Thunder;<br><br> try<br><br> {<br><br> )<br><br> {<br><br> try<br><br> {<br><br> }catch (e)<br><br> {<br><br> try<br><br> ;<br><br> }catch(e)<br><br> {<br><br> Thunder = null;<br>< Thunder = null;<br>< Thunder = null;<br>< <br><br> }<br><br> return Thunder;<br><br>}<br><br>//開始下載<br><br>function Download(url)<br><br>{<br><br> var Thunder_ Thunderv <br><br> <br><br> if(Thunder == null)<br><br> turn;<br><br> } <br><br> try<br><br> { <br><br> Thunder.AddTask(url,""" <br> Thunder.CommitTasks(); <br><br> }catch(e)<br><br> 🎜><br> Thunder.CallAddTask (url,"","",1,"",""); <br><br> }catch(e)<br><br> <br> } <br><br> }<br><br>}<br><br>//容錯函數,以預設瀏覽器下載<br><br>//容錯函數, >{<br><br> //alert('打開瀏覽器下載.......');<br><br>}<br>