试题详情
- 单项选择题 You need to create a JSP that generates some JavaScript code to populate an array of strings used on theclient-side. Which JSP code snippet will create this array?()
A、MY_ARRAY = new Array();<% for ( int i = 0; i < serverArray.length; i++ ) { MY_ARRAY[<%= i %>] = ’<%= serverArray[i] %>’;} %>
B、MY_ARRAY = new Array();. <% for ( int i = 0; i < serverArray.length; i++ ) { . MY_ARRAY[${i}] = ’${serverArray[i]}’;. } %>
C、MY_ARRAY = new Array();. <% for ( int i = 0; i < serverArray.length; i++ ) { %> . MY_ARRAY[<%= i %>] = ’<%= serverArray[i] %>’;. <% } %>
D、MY_ARRAY = new Array();<% for ( int i = 0; i < serverArray.length; i++ ) { %> . MY_ARRAY[${i}] = ’${serverArray[i]}’;. <% } %>
- C
关注下方微信公众号,在线模考后查看
热门试题
- public class&e
- 一辆以固定速度行驶的汽车,司机看到里程表
- 编写一个Java程序,接受用户输入的一个
- 下列哪些项是泛型的优点? (
- import java.aw
- Given the&ensp
- public class&e
- Which three
- 1. class
- public class Test{
- 下面哪段程序能够正确的实现了GBK编码字
- Given the&ensp
- Given the&ensp
- Which of
- Which element&
- 使用滚动条:编写一个Applet包含一个
- 当动作监听器激发时,会调用什么函数?()
- Which statement
- 私有方法不产生覆盖
- package com.sun.sjc