JAVASCRIPT考试题目.pdf

JAVASCRIPT考试题目.pdf

ID:47994353

大小:140.28 KB

页数:9页

时间:2020-01-11

JAVASCRIPT考试题目.pdf_第1页
JAVASCRIPT考试题目.pdf_第2页
JAVASCRIPT考试题目.pdf_第3页
JAVASCRIPT考试题目.pdf_第4页
JAVASCRIPT考试题目.pdf_第5页
资源描述:

《JAVASCRIPT考试题目.pdf》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、复习题一、选择题1、写“HelloWorld”的正确javascript语法是?(A)A.document.write("HelloWorld")B."HelloWorld"C.response.write("HelloWorld")D.("HelloWorld")2、JS特性不包括(D)A.解释性B.用于客户端C.基于对象D.面向对象3、下列JS的判断语句中()是正确的(A)A.if(i==0)B.if(i=0)C.ifi==0thenD.ifi=0then4、下列JavaScript的循环语句中()是正确的(D)A.if(i<10;i++)B

2、.for(i=0;i<10)C.fori=1to10D.for(i=0;i<=10;i++)5、下列的哪一个表达式将返回假(B)A.!(3<=1)B.(4>=4)&&(5<=2)C.(“a”==”a”)&&(“c”!=”d”)D.(2<3)

3、

4、(3<2)6、下列选项中,()不是网页中的事件(D)A.onclickB.onmouseoverC.onsubmitD.onpressbutton7、有语句“varx=0;while(____)x+=2;”,要使while循环体执行10次,空白处的循环判定式应写为:(C)A.x<10B.x<=10C.x<2

5、0D.x<=208、JS语句(B)vara1=10;vara2=20;alert(“a1+a2=”+a1+a2)将显示()结果A.a1+a2=30B.a1+a2=1020C.a1+a2=a1+a29、将字串s中的所有字母变为小写字母的方法是(B)A.s.toSmallCase()B.s.toLowerCase()C.s.toUpperCase()D.s.toUpperChars()10、以下()表达式产生一个0~7之间(含0,7)的随机整数.(C)A.Math.floor(Math.random()*6)B.Math.floor(Math.ran

6、dom()*7)C.Math.floor(Math.random()*8)D.Math.ceil(Math.random()*8)11、产生当前日期的方法是(C)A.Now();B.Date()C.newDate()D.newNow()12、如果想在网页显示后,动态地改变网页的标题(C)A.是不可能的B.通过document.write(“新的标题内容”)C.通过document.title=(“新的标题内容”)D.通过document.changeTitle(“新的标题内容”)13、某网页中有一个窗体对象,其名称是mainForm,该窗体对象的

7、第一个元素是按钮,其名称是myButton,表述该按钮对象的方法是(B)A.document.forms.myButtonB.document.mainForm.myButtonC.document.forms[0].element[0]D.以上都可以14、HTML文档的树状结构中,()标签为文档的根节点,位于结构中的最顶层。(A)A.B.C.D.15、在HTML页面中,CSS样式的属性名为background-image对应的style对象的属性名是(B)A.backgroundB.backgr</p><p>8、oungImageC.imageD.background16、在使用Javascript实现省市级联菜单功能时,在添加城市列表前清空原来的下拉选项的代码是(C)A.document.myform.selCity.options.clear()B.document.myform.selCity.options.deleteAll()C.document.myform.selCity.options.length=0D.document.myform.selCity.options.size=017、HMTL表单的首要标记是<form>,<form></p><p style="height:0px;padding:0;margin:0;overflow:hidden">9、标记的参数method表示表单发送的方法,可能为get或post,下列关于get和post的描述正确的是(D)A.post方法传递的数据对客户端是不可见的B.get请求信息以查询字符串的形式发送,查询字符串长度没有大小限制C.post方法对发送数据的数量限制在255个字符之内D.get方法传递的数据对客户端是不可见的18、在DOM对象模型中,下列选项中的()对象位于DOM对象模型的第二层。(选择二项)(AB)A.historyB.documentC.buttonD.text19、在HTML文档对象模型中,history对象的()用于加载历史列表中</p><p style="height:0px;padding:0;margin:0;overflow:hidden">10、的下一个URL页面。(C)A.next()B.back()C.forward()D.go(-1)20、在Javascript中要改变页面</p> </div> <div class="mt-3 bg-white"> <div class="d-lg-block d-none px-3 px-lg-4 py-3 border-bottom text-center font-18"> 当前文档最多预览五页,下载文档查看全文 </div> <div class="detail-fixed-feature d-none d-lg-block" id="detailFixedFeatureBox"> <div class="px-3 px-lg-4 py-3 d-flex align-items-center justify-content-between fixed-feature-box" id="detailFixedFeature"> <div class="d-lg-flex d-none align-items-center"> <div> <a class="btn btn-outline-danger article-state" href="javascript:;" data-id="47994353" data-code="438274" data-title="JAVASCRIPT考试题目.pdf"> <span>侵权申诉</span> </a> <button type="button" class="btn btn-outline-secondary with-light ml-2" data-toggle="modal" data-target="#reportModal" data-id="47994353"><span>举报</span></button> </div> <nav class="d-flex align-items-center ml-4" id="anchorPoint"> <a href="javascript:;" class="btn btn-light anchor-pre px-2"><i class="iconfont text-muted"></i></a> <div class="text-muted mb-0 pre-point-list" id="prePointList"> <a class="px-2 active nav-link" href="#anchorImg0">1</a> <a class="px-2 nav-link" href="#anchorImg1">1</a> <a class="px-2 nav-link" href="#anchorImg2">2</a> <a class="px-2 nav-link" href="#anchorImg3">3</a> <a class="px-2 nav-link" href="#anchorImg4">4</a> <a class="px-2 nav-link" href="#anchorImg5">5</a> / <span class="px-2" id="prePageNums">9</span> </div> <a href="javascript:;" class="btn btn-light anchor-next px-2"><i class="iconfont text-muted"></i></a> </nav> </div> <div class="d-flex align-items-center"> <p class="d-lg-block d-none font-14 text-black-50 mb-0 mr-2">此文档下载收益归作者所有</p> <button class="btn btn-danger detail-download-btn px-3 ml-0 font-16" data-btn="downloadfile" style="width:128px;height:40px;" data-id="47994353" data-price="1200" data-size="140.28 KB" data-page="9页" data-type="pdf" data-binddown="true" data-isold="new_content" data-vip="0" data-title="JAVASCRIPT考试题目.pdf">下载文档</button> </div> </div> </div> </div> <div class="d-block d-lg-none px-3 px-lg-4 py-3 border-bottom text-center font-14" style="color:#999">当前文档最多预览五页,下载文档查看全文</div> <button class="btn d-block w-100 d-lg-none btn-danger detail-download-btn px-3 ml-0 font-16" data-btn="downloadfile" data-id="47994353" data-price="1200" data-size="140.28 KB" data-page="9页" data-type="pdf" data-binddown="true" data-isold="new_content" data-vip="0" data-title="JAVASCRIPT考试题目.pdf">点击下载本文档 </button> </div> <div class="px-3 px-lg-4 py-3 bg-white mt-3"> <ul class="nav custom-tab border-bottom" id="myTab" role="tablist"> <li class="nav-item" role="presentation"> <a class="nav-link active px-0 mr-4 font-16 font-weight-light pb-3" id="tips-tab" data-toggle="tab" href="#showTips" role="tab" aria-controls="showTips" aria-selected="true">版权提示</a> </li> <li class="nav-item" role="presentation"> <a class="nav-link px-0 pb-3 font-16 font-weight-light text-black-50" href="/d-47994353.html" >下载文档</a> </li> <dl class="flex-grow-1 mb-0 d-lg-none"> <li class="ml-3 float-right d-lg-none"> <button type="button" class="btn btn-light" data-toggle="modal" data-target="#reportModal" data-id="47994353"><span>举报</span></button> </li> </dl> </ul> <div class="tab-content with-content pt-3" id="myTabContent"> <div class="tab-pane fade show active font-14" id="showTips" role="tabpanel" aria-labelledby="showTips-tab"> 温馨提示: <br> 1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。<br> 2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。<br> 3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。<br> 4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。 <br> </div> </div> </div> </div> <div class="detail-sidebar d-none d-lg-block"> <div id="columnDetailSiderRight"> <div class="detail-yourlike mt-0 pb-2" id="relativeArticle"> <div class="border-bottom py-2 d-flex align-items-center justify-content-between"> <h5 class="font-16">相关文章</h5> <a class="font-14 hover-letter-spacing" href="/ucenter/search/index.html?text=JAVASCRIPT考试题目.pdf" target="_blank" rel="nofollow">更多<i class="iconfont font-12 pl-1"></i></a> </div> <ul class="font-14 like-list"> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-doc" href="/p-2059195.html" title="javascript考试题目选择题" target="_blank">javascri<span class="text-danger">p</span>t<span class="text-danger">考</span><span class="text-danger">试</span><span class="text-danger">题</span><span class="text-danger">目</span>选择<span class="text-danger">题</span></a> </li> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-doc" href="/p-8388456.html" title="javascript考试题目选择题" target="_blank">javascri<span class="text-danger">p</span>t<span class="text-danger">考</span><span class="text-danger">试</span><span class="text-danger">题</span><span class="text-danger">目</span>选择<span class="text-danger">题</span></a> </li> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-doc" href="/p-11250974.html" title="javascript简单题目" target="_blank">javascri<span class="text-danger">p</span>t简单<span class="text-danger">题</span><span class="text-danger">目</span></a> </li> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-doc" href="/p-13158104.html" title="javascript考试题目选择题" target="_blank">javascri<span class="text-danger">p</span>t<span class="text-danger">考</span><span class="text-danger">试</span><span class="text-danger">题</span><span class="text-danger">目</span>选择<span class="text-danger">题</span></a> </li> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-pdf" href="/p-23518100.html" title="javascript教程.pdf" target="_blank">javascri<span class="text-danger">p</span>t教程<span class="text-danger">.</span><span class="text-danger">p</span><span class="text-danger">d</span><span class="text-danger">f</span></a> </li> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-doc" href="/p-32281057.html" title="javascript考试题目" target="_blank">javascri<span class="text-danger">p</span>t<span class="text-danger">考</span><span class="text-danger">试</span><span class="text-danger">题</span><span class="text-danger">目</span></a> </li> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-pdf" href="/p-34565407.html" title="The Future of JavaScript in the JDK .pdf" target="_blank"><span class="text-danger">T</span>heFutureo<span class="text-danger">f</span><span class="text-danger">J</span>ava<span class="text-danger">S</span>cri<span class="text-danger">p</span>tinthe<span class="text-danger">J</span>DK<span class="text-danger">.</span><span class="text-danger">p</span><span class="text-danger">d</span><span class="text-danger">f</span></a> </li> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-pdf" href="/p-34858614.html" title="professional javascript.pdf" target="_blank"><span class="text-danger">p</span>ro<span class="text-danger">f</span>essionaljavascri<span class="text-danger">p</span>t<span class="text-danger">.</span><span class="text-danger">p</span><span class="text-danger">d</span><span class="text-danger">f</span></a> </li> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-doc" href="/p-42740108.html" title="最新中级JavaScript阶段题目" target="_blank">最新中级<span class="text-danger">J</span>ava<span class="text-danger">S</span>cri<span class="text-danger">p</span>t阶段<span class="text-danger">题</span><span class="text-danger">目</span></a> </li> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-pdf" href="/p-44838219.html" title="Javascript考试题目选择题(DOC)" target="_blank"><span class="text-danger">J</span>avascri<span class="text-danger">p</span>t<span class="text-danger">考</span><span class="text-danger">试</span><span class="text-danger">题</span><span class="text-danger">目</span>选择<span class="text-danger">题</span>(DO<span class="text-danger">C</span>)</a> </li> </ul> </div> <div class="detail-yourlike pb-2"> <div class="border-bottom py-2"> <h5 class="font-16">相关标签</h5> </div> <ul class="font-14 like-list d-flex flex-wrap"> <a class="search-tag" href="/tags/14/" target="_blank">JAVASCRIPT</a> <a class="search-tag" href="/tags/1267347/" target="_blank">考试</a> </ul> </div> <script src="/d/js/acmsd/thea1.js"></script> </div> </div> </div> <footer> <div class="container d-none d-lg-block mb-4"> <div class="d-flex justify-content-between footer-nav"> <ul class="d-flex foot-nav"> <li> <h5>常见问题</h5> <a class=text-decoration-none href=/help/wenti/upload/ target=_blank> 关于上传 </a><a class=text-decoration-none href=/help/wenti/xiazai/ target=_blank> 关于下载 </a><a class=text-decoration-none href=/help/wenti/qinquan/ target=_blank> 关于侵权 </a><a class=text-decoration-none href=/help/wenti/fenxaing/ target=_blank> 分享文档赚钱教程 </a> </li> <li> <h5>关于我们</h5> <a class=text-decoration-none href=/help/about/wzjs/ target=_blank> 网站介绍 </a><a class=text-decoration-none href=/help/about/gywm/ target=_blank> 关于我们 </a><a class=text-decoration-none href=/help/about/lxwm/ target=_blank> 联系我们 </a> </li> <li> <h5>版权问题</h5> <a class=text-decoration-none href=/help/banquan/bqsm/ target=_blank> 版权声明 </a><a class=text-decoration-none href=/help/banquan/qqcl/ target=_blank> 侵权处理 </a><a class=text-decoration-none href=/help/banquan/mzsm/ target=_blank> 免责声明 </a> </li> <li> <h5>协议条款</h5> <a class=text-decoration-none href=/help/xieyi/yhxy/ target=_blank> 用户协议 </a><a class=text-decoration-none href=/help/xieyi/fwtk/ target=_blank> 用户服务条款 </a><a class=text-decoration-none href=/help/xieyi/ysbh/ target=_blank> 用户隐私保护 </a> </li> <li> <h5>网站导航</h5> <a class="text-decoration-none help-nav-item" href="/sitemaps.xml" data-name="网站地图" target="_blank">网站地图</a> <a class="text-decoration-none help-nav-item" href="/list.html" data-name="全部分类" target="_blank">全部分类</a> <a class="text-decoration-none help-nav-item" href="/sitemaps/index.html" data-name="资源地图" target="_blank">资源地图</a> </li> </ul> <div class="foot-qrcode d-flex"> <div> <div class="subsitute-bg"><img src="https://www.wenku365.com/d/file/2022/07-08/f23df57d987ef7ad9acb33fe5abf9854.jpg"></div> <p>关注公众号<br></p> </div> </div> </div> </div> <div class="footer-copyright"> <p><a href="/" target="_blank">天天文库</a>站为“文档C2C交易模式”,即用户上传的文档直接卖给(下载)用户,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有【成交的100%(原创)】。</p> <p>本站是网络服务平台方,若您的权利被侵害,侵权客服QQ:3074922707 欢迎举报。</p> <p>Copyright 2004-2021 <a href="https://www.wenku365.com/" target="_blank">wenku365.com</a> All Rights Reserved <a href="https://beian.miit.gov.cn/#/Integrated/index" rel="nofollow" target="_blank">闽ICP备15016911号-5 </a></p> <p>闽公网安备 <a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=35052402000320" rel="nofollow" target="_blank">35052402000320</a></p> <p> <a href="https://www.wenku365.com/zt.html" target="_blank">专题文集</a> <a href="https://www.wenku365.com/zt-90007.html" target="_blank">丨职业培训</a> <a href="https://www.wenku365.com/zt-90005.html" target="_blank">丨实用范文</a> <a href="https://www.wenku365.com/zt-90010.html" target="_blank">丨商业材料</a> <a href="https://www.wenku365.com/zt-90013.html" target="_blank">丨合同协议</a> <a href="https://www.wenku365.com/zt-90009.html" target="_blank">丨PPT专题</a></p> </div> </footer> <script src="//static.wenku365.com/wenku365/js/global.min.js?"></script> <script src="//static.wenku365.com/wenku365/js/clipboard.min.js?"></script> <script src="//static.wenku365.com/wenku365/js/jquery.treeview.js?"></script> <script src="//static.wenku365.com/wenku365/js/jquery.share.min.js?"></script> <script src="//static.wenku365.com/wenku365/js/common.min.js?"></script> <script src="//static.wenku365.com/wenku365/js/downloadFile.js?"></script> <script src="//static.wenku365.com/wenku365/js/loginWindow.js?"></script> <script src="//static.wenku365.com/wenku365/js/windowRecharge.js?"></script> <script src="//static.wenku365.com/wenku365/js/viewer.min.js?"></script> <script src="//static.wenku365.com/wenku365/js/detail.js?"></script> <!-- 2023-05-07 12:09:41 --> </body> </html>