- 2
- 0
- 约3.55千字
- 约 10页
- 2017-08-31 发布于河南
- 举报
javascript牛题(javascript牛题)
javascript牛题(javascript牛题)
Scoring principle: 12 topics, 1 - 10, entitled fill in the blanks, each of the questions 8 points, 11---12 programming questions, each of 10 points, total score of 100 points
1 (fill in the blanks) what are the following code execution results?
ul id= demo
lia/li
lib/li
lic/li
/ul
script type= text/javascript
Var UL = document.getElementById (demo);
Var liList = ul.getElementsByTagName (li);
For (VaR I = 0; I liList.length; ++i) {
Ul.removeChild (liList[i]);
}
/script
2, (fill in the blanks) what are the results of the following two sections of code?:
script type= text/javascript
VaR, YX01 = new, function (), {return, test,};
Alert (YX01);
VaR, YX01 = new, function (), {return, new, String (` test )};
Alert (YX01);
/script
3. Whats the value of the following code?
script type= text/javascript
Function, testFunction () {
Var args_1 = Array.prototype.slice.call (arguments, 1, 2);
//var args_2 = Array.prototype.splice.call (arguments, 0, arguments.length);
//alert (args_1 + \n + args_2);
}
TestFunction (1,2,3);
/script
4 (fill in the blanks), click on the following A, B, C, D four links, respectively, what results?
div id= demo
a href= # A/a
a href= # B/a
a href= # C/a
a href= # D/a
/div
script type= text/javascript
Var addHandlers = function (nodes) {
For (VaR I = 0; I nodes.length; ++i) {
Nodes[i].onclick = function (EV) {
Alert (I * 100);
}
}
}
AddHandlers (document.getElementById (demo).GetElementsByTagName (a));
/script
5, (fill in the blanks) the following code, the implementation of the final results:
script type= text/javascript
Var Obj = {};
Obj.abc = = undefined;
Undefined =Hello, world;
Obj.abc =Hello, world;
Alert (Obj.abc = undefined);
/script
6 (fill in the blanks) what are the following lines and values?:
script type= text/javascript
Var a = b = C = D = e = f = 1;
Alert (a++);
Alert (++b);
Alert (+ C);
Alert (D + +);
Alert (+ +e);
Alert (+ + F);
/script
script type= text/javascript
Alert ( = =0);
Alert ( = = false);
您可能关注的文档
- 20篇作文(20 compositions).doc
- 2014最新阳泉交通公示(2014, the latest Yangquan traffic publicity).doc
- 210个字谜灯谜(210 puzzle lantern riddles).doc
- 21世纪想成功必看的——网商经(Twenty-first Century - net business must want to succeed).doc
- 21招 让脂肪燃烧大提速(21 strokes so that fat burning speed).doc
- 21yod 2011-8-24 74632 药店名称订单总数发货数甘肃德生堂医药(21yod 2011-8-24 74632 the total number of orders shipped Gansu drugstore name deshengtang medicine).doc
- 2014香港标杆房企住宅、豪宅、别墅及商业地产考察(9月26-28日)(2014 Hongkong benchmark housing prices, residential, luxury, villas and commercial real estate inspection (September 26-28)).doc
- 220th水冷方形分离器循环流化床锅炉的设计及运行(Design and operation of 220th water-cooled square separator circulating fluidized bed boiler).doc
- 23万余条意见里的百企业培训姓视角 个税改革三大焦点(More than 23 views of 100 enterprises training, surname perspective, tax reform focus of three).doc
- 23万余条意见里的百姓视角 个税改革三大焦点(More than 23 views of the people in the views of three major focus of tax reform).doc
- 小区绿化施工协议书.docx
- 墙面施工协议书.docx
- 1 古诗二首(课件)--2025-2026学年统编版语文二年级下册.pptx
- (2026春新版)部编版八年级道德与法治下册《3.1《公民基本权利》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《4.3《依法履行义务》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.2《按劳分配为主体、多种分配方式并存》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.1《公有制为主体、多种所有制经济共同发展》PPT课件.pptx
- 初三教学管理交流发言稿.docx
- 小学生课外阅读总结.docx
- 餐饮门店夜经济运营的社会责任报告(夜间贡献)撰写流程试题库及答案.doc
原创力文档

文档评论(0)