zhulinyanyu 2013-08-09
http://www.blogjava.net/nokiaguy/archive/2009/02/06/253636.html
<applet code="Main.class" id="forwardport" codebase="." ARCHIVE = "forwardport.jar" width="0" height="0"> <param name="conPort" value="9881"/> <param name="chanPort" value="9882"/> <param name="proxyHostIp" value="119.56.23.12"/> </applet>
var result=false; var appletforward = document.getElementById('forwardport'); setTimeout(function() { try{ //其中portForward是applet java代码中提供的一个方法 result=appletforward.portForward(); }catch(ex){ alert(ex); } }, 100000);