我在localStorage中存储了一个值。
我希望使用Javascript将此值插入输入字段值。我该怎么做?
演示:http://jsfiddle.net/5apg1mh3/
localStorage.setItem("email", "test");

<input type="text" value="" id="email" name="email"/>
&#13;
答案 0 :(得分:3)
void print(int a, int b, int c)
{
int max = Math.max(a, Math.max(b, c));
for(int i = max; i > 0; i--)
{
System.out.print(a >= i ? "*" : " ");
System.out.print(b >= i ? "*" : " ");
System.out.print(c >= i ? "*" : " ");
System.out.println();
}
}