点击页面的按钮,使之打开一个新窗口,加载一个网页,以下JavaScript代码中可行的是( )。 A: <input type="button" value="new" onclick="window.location='new.html';"/> B: <input type="button" value="new" onclick=" location.assign('new.html');"/> C: <form target="_blank" action="new.html"> <input type="submit" value="new"/> </form> D: <input type="button" value="new" onclick="open('new.html', '_blank') "/>
点击页面的按钮,使之打开一个新窗口,加载一个网页,以下JavaScript代码中可行的是( )。 A: <input type="button" value="new" onclick="window.location='new.html';"/> B: <input type="button" value="new" onclick=" location.assign('new.html');"/> C: <form target="_blank" action="new.html"> <input type="submit" value="new"/> </form> D: <input type="button" value="new" onclick="open('new.html', '_blank') "/>
下面哪种写法可以链接到百度网页? A: <a href="百度">百度</a> B: <a href="baidu.com" target="new">百度</a> C: <a href="http://baidu.com" target="new">百度</a> D: <a href="hhtp://www.baidu.com" target="new">百度</a>
下面哪种写法可以链接到百度网页? A: <a href="百度">百度</a> B: <a href="baidu.com" target="new">百度</a> C: <a href="http://baidu.com" target="new">百度</a> D: <a href="hhtp://www.baidu.com" target="new">百度</a>
有如下代码:public class Test4{ public static void main(String args[]) { String str = new String("New"); char ch[] = {'B', 'e'}; change(str,ch); System.out.println(str + "," + new String(ch)); } public static void change(String str, char ch[]) { str = "Old"; ch[0] = 'H'; }}运行后输出的结果是? A: New,Be B: New,He C: Old,He D: Old,Be
有如下代码:public class Test4{ public static void main(String args[]) { String str = new String("New"); char ch[] = {'B', 'e'}; change(str,ch); System.out.println(str + "," + new String(ch)); } public static void change(String str, char ch[]) { str = "Old"; ch[0] = 'H'; }}运行后输出的结果是? A: New,Be B: New,He C: Old,He D: Old,Be
创建一个标识有“关闭”按钮的语句是( )。 A: JTextField button = new JTextField("关闭"); B: JButton button = new JButton("关闭"); C: JLabel button = new JLabel ("关闭"); D: JCheckbox button = new JCheckbox("关闭");
创建一个标识有“关闭”按钮的语句是( )。 A: JTextField button = new JTextField("关闭"); B: JButton button = new JButton("关闭"); C: JLabel button = new JLabel ("关闭"); D: JCheckbox button = new JCheckbox("关闭");
新建一个流对象,下列( )选项的代码是错误的。 A: new BufferedWriter(new FileWriter("a.txt")); B: new BufferedReader(new FileInputStream("a.dat")); C: new DataOutputStream(new FileOutputStream("a.txt")); D: new ObjectInputStream(new FileInputStream("a.dat"));
新建一个流对象,下列( )选项的代码是错误的。 A: new BufferedWriter(new FileWriter("a.txt")); B: new BufferedReader(new FileInputStream("a.dat")); C: new DataOutputStream(new FileOutputStream("a.txt")); D: new ObjectInputStream(new FileInputStream("a.dat"));
下列哪个选项是创建一个标识有“关闭”按钮的语句? ( ) A: JTextField b = new JTextField("关闭"); B: JTextArea b = new JTextArea ("关闭"); C: JButton b = new JButton("关闭"); D: JCheckbox b = new JCheckbox("关闭");
下列哪个选项是创建一个标识有“关闭”按钮的语句? ( ) A: JTextField b = new JTextField("关闭"); B: JTextArea b = new JTextArea ("关闭"); C: JButton b = new JButton("关闭"); D: JCheckbox b = new JCheckbox("关闭");
下面那个HTML代码,可以实现在新窗口打开超链接( ) A: <a href="url" new> B: <a href="url" target="_blank"> C: <a href="url" target="window"> D: <a href="url" target="new">
下面那个HTML代码,可以实现在新窗口打开超链接( ) A: <a href="url" new> B: <a href="url" target="_blank"> C: <a href="url" target="window"> D: <a href="url" target="new">
以下哪个语句可以实现在新窗口打开链接。 A: <a href="url" target="new"> B: <a href="url" target="_blank"> C: <a href="url" new> D: 另外三个答案都不正确。
以下哪个语句可以实现在新窗口打开链接。 A: <a href="url" target="new"> B: <a href="url" target="_blank"> C: <a href="url" new> D: 另外三个答案都不正确。
定义并初始化一个用于存放我们国家的四个直辖市的数组cityName,四个直辖市为:北京,上海,天津,重庆. 正确的是_________ A: String[] cityName=new String[4]{"北京","上海","天津","重庆"}; B: String[] cityName=new String[]{"北京","上海","天津","重庆"}; C: String[] cityName={"北京","上海","天津","重庆"}; D: String cityName = new String[4] { "北京", "上海", "天津", "重庆" };
定义并初始化一个用于存放我们国家的四个直辖市的数组cityName,四个直辖市为:北京,上海,天津,重庆. 正确的是_________ A: String[] cityName=new String[4]{"北京","上海","天津","重庆"}; B: String[] cityName=new String[]{"北京","上海","天津","重庆"}; C: String[] cityName={"北京","上海","天津","重庆"}; D: String cityName = new String[4] { "北京", "上海", "天津", "重庆" };
下列定义字符串数组的语法正确的是( )? A: String[] list = new String[]{"red", "yellow", "green"}; B: String list = new String{"red", "yellow", "green"}; C: String list = {"red", "yellow", "green"}; D: String[] list = {"red", "yellow", "green"};
下列定义字符串数组的语法正确的是( )? A: String[] list = new String[]{"red", "yellow", "green"}; B: String list = new String{"red", "yellow", "green"}; C: String list = {"red", "yellow", "green"}; D: String[] list = {"red", "yellow", "green"};