A.clearTimeout()B.removeTimeout()C.clearInterval()D.removeInterval()
单项选择题关于prompt()方法的使用,以下说法正确的是()
A.var name =prompt("输入姓名:","默认值");弹出消息框后,用户输入信息,按下确定按钮,name的值为"默认值"B.var name =prompt("输入姓名:","默认值");弹出消息框后,用户未输入,按下确定按钮,name的值为nullC.var name =prompt("输入姓名:","默认值");弹出消息框后,用户输入信息,按下取消按钮,name的值为"默认值"D.var name =prompt("输入姓名:","默认值");弹出消息框后,用户未输入信息,按下取消按钮,name的值为null
单项选择题下面哪个不是JavaScript运算符()
A.=B.==C.&&D.#
单项选择题JavaScript是一种脚本语言,有助于把静态页面转换为动态页面,下面对JavaScript语法规则的描述错误的是()
A.JavaScript语句每行结尾以分号(;)结束B.JavaScript语言不区分大小写C.JavaScript代码必须包含在HTML页面的< SCRIPT>标签内D.JavaScript中使用双斜线(//)注释代码
单项选择题在JavaScript中关于逻辑控制语句,以下选项说法错误的是()
A.JavaScript中,if后只有一行代码,则选择判断语句后的大括号可以省略B.if ...else条件控制语句须成对出现C.for循环语句一般都要指定循环的次数D.for in循环语句无须指定循环的次数
单项选择题在JavaScript中,当光标离开文本框userName时,将触发()事件。
A.onBlurB.onFocusC.onChangeD.focus
单项选择题在HTML页面中,下列选项中除了()都属于鼠标相关事件。
A.onClickB.onMouseOverC.onMouseOutD.onChange
单项选择题JavaScript是一种脚本语言,用于开发基于客户端和基于服务器的Internet应用程序,下面关于JavaScript的说法错误的是()
A.JavaScript可用于客户端脚本B.JavaScript可以嵌入到HTML文档,也可以编写为单独的JS文件C.JavaScript支持变量和数据类型D.JavaScript不能识别鼠标单击等用户事件
单项选择题在JavaScript中,自定义的函数一般直接放在()之间。
A.<HEAD>和</HEAD>B.<BODY>和</BODY>C.<SCRIPT>和</SCRIPT>D.<HTML>和</HTML>
单项选择题在JavaScript中,JavaScript核心函数最好放在()之间,确保在调用的时候可以提前加载完成。
A.<BODY></BODY>B.<HEAD></HEAD>C.<HTML></HTML>D.<FORM></FORM>
单项选择题jquery中,能实现克隆的方法是()
A.remove()B.appendTo()C.append()D.clone()