设为首页 加入收藏

TOP

Web前端开发面试题之JavaScript问题
2014-10-23 11:30:03 来源: 作者: 【 】 浏览:44
Tags:Web 前端 发面 试题 JavaScript 问题

1. java script是一门基于解释性的语言,它和java语言的区别?
java script是基于对象的,而JAVA是面向对象的!java script是在浏览器里面运行的,而JAVA是在操作系统上运行的,JAVA里面也有类似java script的叫applet;JAVA比java script要强大的多


2. java script在使用的过程中,浏览器之间存在什么样的差异?


3. JS中的三种弹出式消息提醒(警告窗口、确认窗口、信息输入窗口)的命令是什么?
1. vTextData = window.prompt([sMessage] [, sDefaultValue])


sMessage Optional–String that specifies the message to display in the dialog box. By default, this parameter is set to ” “.


sDefaultValue Optional–String that specifies the default value of the input field. By default, this parameter is set to “undefined “.


2. bChoice = window.confirm([sMessage])
sMessage Optional–String that specifies the message to display in the confirmation dialog box. If no value is provided, the dialog box does not contain a message.


3. window.alert([sMessage])


sMessage Optional. String that specifies the message to display in the Alert dialog box. If no value is provided, the dialog box contains no message.


4. 完成foo()函数的内容,要求能够弹出对话框提示当前选中的是第几个单选框?


<script> function foo() { // 在此处添加代码 return false; }




5. 使用变量的时候要注意什么?


6. 变量在代码中的定义和java有那些不同?


7. java script 也能创建对象,它创建对象的过程以及特点是什么?


8. 创建并使用数组有几种方式请举例说明?


9. 在java script代码引入到html中有哪些方式?


10. 编程:为student对象添加getName()方法, 其返回结果为student对象的name属性的值?


11. 编程:为student对象添加getName()方法,其返回结果为student对象的name属性的值?


12. 在java script中如何创建并使用select下拉列表,请写一个例子?


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇爱日租-软件测试工程师笔试题 下一篇所有的求职经历均定格在今天(201..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: