C
coobo
Unregistered / Unconfirmed
GUEST, unregistred user!
class PieItem {
publicdo
uble frac;
// each one has a number
public String label;
// and a label
PieItem (String s) { // constructor
StringTokenizer t = new StringTokenizer(s, ",");
frac =do
uble.valueOf(t.nextToken()).doubleValue();
label = t.nextToken();
} // constructor
} // PieItem
...
...
PieItem[] v = new PieItem[nargs];
// allocate storage
for (i=0;
i<nargs;
i++) {
v = new PieItem(getParameter("arg"+i));
// parse argument
} // for
...
请问这个参数在网页中怎么传?
这样对吗: <param name = arg0 value = 30.0|"aaa1">
<param name = arg1 value = 30.0|"aaa2">
...
publicdo
uble frac;
// each one has a number
public String label;
// and a label
PieItem (String s) { // constructor
StringTokenizer t = new StringTokenizer(s, ",");
frac =do
uble.valueOf(t.nextToken()).doubleValue();
label = t.nextToken();
} // constructor
} // PieItem
...
...
PieItem[] v = new PieItem[nargs];
// allocate storage
for (i=0;
i<nargs;
i++) {
v = new PieItem(getParameter("arg"+i));
// parse argument
} // for
...
请问这个参数在网页中怎么传?
这样对吗: <param name = arg0 value = 30.0|"aaa1">
<param name = arg1 value = 30.0|"aaa2">
...