比如applet文件是AppletTest.class
1)
在AppletTest.java的代码中
使用默认包,即不用package语句
在html页中的代码是
<applet code="AppletTest.class" width="400" height="300">
</applet>
AppletTest.class文件和html页放在一个文件夹中
2)
在AppletTest.java的代码中
package xx.yy;
在html页中的代码是
<applet code="xx.yy.AppletTest.class" width="400" height="300">
</applet>
AppletTest.class文件放在xx/yy文件夹中
html页放xx文件夹的上层目录中
applet在html中无法显示 解决方法
最新推荐文章于 2021-06-24 15:34:30 发布