html文件 怎么调用java的class

html是在浏览器端运行的,java是在服务端运行。如果想用浏览器端去调用服务器端的程序或class.要用javascript的 ajax来做
html文件 怎么调用java的class
<applet code="No1.class" Codebase="." width="800" height="200" >
</applet>2014-04-10
看代码:
No1.java 文件为:
package test;

public class No1 {

public static void main(String[] args) {
for (int i = 1;i<18;i++){
System.out.println("No1 program.");2015-06-04
html是在浏览器端运行的,java是在服务端运行。如果想用浏览器端去调用服务器端的程序或class.要用javascript的 ajax来做2014-04-10
mengvlog 阅读 11 次 更新于 2025-07-21 16:43:46 我来答关注问题0
檬味博客在线解答立即免费咨询

代码相关话题

Copyright © 2023 WWW.MENGVLOG.COM - 檬味博客
返回顶部