下列选项中,()段HTML代码所表示的“返回”链接能够正确实现IE工具栏中“后退”按钮的功能。
第1题:
A.document.replace()
B.document.reload();
C.location.replace(href);
D.location.reload();
第2题:
以下HTML代码中,创建指向邮箱地址的链接正确的是______。
A.<a href="email:test@test.com">test@test.com</a>
B.<a href="emailto:test@test.com">test@test.com</a>
C.<a href="mail:test@test.com">test@test.com</a>
D.<a href="mailto:test@test.com">test@test.com</a>
第3题:
在javascript中数组的()属性用于返回数组中元素的个数。
A、first
B、shift
C、length
D、push
第4题:
A.Math.ceil(512.51)返回的结果为512
B.Math.floor( )方法用于对数进行下舍入
C.Math.round(-512.51)返回的结果为-512
D.Math.random( )返回结果为0~1,包括0和1
第5题:
A.parseInt(43.12)返回值为43
B.parseInt('abc43.12')返回值为NaN
C.parseFloat(' 45.13abc')==parseInt( 43.12) 返回true
D.isNaN(parseFloat(' 45.13abc'))返回true
第6题:
以下是该网站进行数据库连接的代码conn.asp,请完成该程序。 <% set conn=server, createobject ("adodb. connection") conn .provider="sqloledb'' provstr="server=(8);database=(9);uid=sa;pwd=9857452" conn. open provstr %> 2.下面是用户登录检查的,部分程序,要求实现对用户提交的用户名和密码进行检验,如果用户名、密码错误,提示错误并返回首页;如果用户名和密码正确,将用户提交的用户名(user)的值赋给session("user"),然后返回首页。请根据题目说明和功能说明在备选项中选择正确的答案填在答题纸上。 <!--include file="conn.asp"--> <% username=request("user") password=request("password") set rs=server.createobject("adodb.recordset") sql="select * from (10) where username='"&username&"'" rs.open sql,conn, 1,1 if (11) then response.write"<script. language=Javascript>alert('此用户名尚未注册'); this.location.href='index.asp';</script>" response.end else pass=rs("password") if(12)then response.write"<script language=javascript>alert('密码错误' ; this. location.href='javascript.:history.go(-1)';</script>" response.end end if (13)(14).redirect"index.asp" end if rs.close set rs=(15)%>
备选答案
A. user
B. pass <>password
C. nosing
D. session("user")=username
E. response
F. pass=password
G. rs.eof
H. request
I. null
J. shangwu
K. rs.end
第7题:
因为JavaScript函数有返回值,所以必须在定义函数时知名返回值的类型。()
第8题:
此题为判断题(对,错)。
第9题:
A.document.replace( )
B.document.reload( );
C.location.replace(href);
D.location.reload( );
第10题:
Javascript里Math的()方法返回介于0和1之间的伪随机数。