我想使用applet
在HTML
页面中加载javascript
,因此我尝试将其加载deployJava
作为:
<script>
var attributes = {
id: "myApplet",
code: "mycode",
archive: "myApplet.jar, lib/jna.jar, lib/junit-4.10.jar, lib/native.bat",
width: 30,
height: 30
};
var parameters = {jnlp_href:"launch.jnlp"}; <!-- Applet Parameters -->
if (deployJava.versionCheck("1.6+") == false)
{
alert("No Java or wrong version");
}
else
{
alert("Java found");
}
var version = "1.6"; <!-- Required Java Version -->
deployJava.runApplet(attributes, parameters, version);
</script>
但我不想使用deployJava
课程。有没有在javascript中加载applet
的替代方法?