千金一刻莫空度,老大无成空自伤。这篇文章主要讲述e552. 取Applet的参数相关的知识,希望能为你提供帮助。
An applet can be configured through the use of applet parameters. For example, the contents for a news ticker applet could be specified through an applet parameter.
Here‘s how an applet parameter would be specified in an html file. The example specifies two applet parameters called p1 and p2:
< applet code=AppletClassName width=100 height=100> < param name=p1 value=https://www.songbingjia.com/android/"some text"> < param name=p2 value=https://www.songbingjia.com/android/"some more text"> < /applet>
Here‘s how the value of an applet parameter can be retrieved:
String parameterName = "p1"; String value = https://www.songbingjia.com/android/applet.getParameter(parameterName); parameterName = "p2"; value = https://www.songbingjia.com/android/applet.getParameter(parameterName);
【e552. 取Applet的参数】
Related Examples |
推荐阅读
- e558. 在Applet中多图片交互显示
- SVG g元素用法详解
- SVG教程入门介绍
- SVG第一个例子详解
- Struts 2项目(登录和注销示例)
- Struts 2提取表的所有记录示例
- Struts 2 i18n用法示例图解教程
- Struts 2 Tiles Framework集成教程示例
- Struts 2实现注册表单示例