e552. 取Applet的参数

千金一刻莫空度,老大无成空自伤。这篇文章主要讲述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

    推荐阅读