【单选题】
以上函数返回的结果为___
A. : undefined
B. : 不执行
C. : undefined 弹出30
D. : 以上都不对
查看试卷,进入试卷练习
微信扫一扫,开始刷题

答案
A
解析
暂无解析
相关试题
【单选题】
(专基_Js)在正则表达式(abc){2} 表示( )。___
A. : 表示匹配abc整体2次
B. : 表示匹配ab和c2次
C. : 表示匹配abc和2
D. : 以上都不对
【单选题】
(专基_Js)以下匹配url地址是否`正确的正则表达式是( )url地址可以是http://www.baidu.com,也可以是https://baidu.com。___
A. : /^http(s)?:\/\/(www\.)?[a-z\d]+\.[a-z]+$/
B. : /^(https)?:\/\/(www.)?[a-z\d]+\.[a-z]+$/
C. : /^http(s)?:\/\/(www\.)*[a-z\d]+\.[a-z]+$/
D. : /^http(s):\/\/(www\.)?[a-z\d]*\.[a-z]?$/
【单选题】
(专基)以下是匹配手机号码`正确的是___
A. : /^1[345678][0-9]9$/
B. : /^1[345678][0-9]{9}$/
C. : /^1[345678][0-9]{9}/
D. : 以上都不对
【单选题】
console.log( arr );打印结果为___
A. : ["box1","box2","","box3","box4","",""]
B. : ["box1","box2","","","box3","box4"]
C. : ["box1","box2","box3","box4"]
D. : 以上都不对
【单选题】
console.log( newStr );打印结果为___
A. : "bond,mat,sat,fat"
B. : "bond,mond,sond,fond"
C. : "bat,mat,sat,fond"
D. : 以上都不对
【单选题】
var str="Take me and tom to the moon"; var patt1=/\bm/g; console.log(str.match(patt1));打印结果是( )? ___
A. : ["m","m"]
B. : ["m","m","m"]
C. : ["me","monn"]
D. : ["me","tom","monn"]
【单选题】
(专基_Js)已知文本框节点为ipt,设置文本框内容为"hello world"的语法为( )。___
A. : ipt.innerHTML = "hello world"
B. : ipt.value = "hello world"
C. : ipt.inner = "hello world"
D. : ipt.val = "hello world"
【单选题】
<input type="button" id="btn" value="登录">document.getElementById("btn").onclick=say();function say(){alert("hello")}对以上代码的描述`正确的是( )___
A. : 点击“登录”按钮时弹出hello
B. : 无需点击“登录”按钮,直接弹出hello
C. : 鼠标滑过“登录”按钮时弹出hello
D. : 点击“登录”按钮时程序报错,say是undefined
【单选题】
(专基js)以下设置元素dom样式`正确是___
A. : dom.style.font-size = "20px"
B. : dom.background = "red"
C. : dom.style.fontSize = "20"
D. : dom.style.fontSize = "20px"
【单选题】
(专基_Js)当页面完全加载后在 window 上面触发的事件是以下哪一个( )。___
A. : load
B. : unload
C. : focus
D. : blur
【单选题】
(专基js)<span id="title">welcome to <em>beijing</em></span>,console.log(document.getElementById("title").innerHTML)的打印结果是?___
A. : welcome to <em>beijing</em>
B. : welcome to beijing
C. : <em>beijing</em>
D. : welcome to
【单选题】
(专基_Js)定义超时调用的方法是( )。___
A. : setInterval()
B. : setTimeout()
C. : clearInterval()
D. : cleaTimeout()
【单选题】
(网站工程)window.( )是用来弹出一个确认对话框的?___
A. : open()
B. : alert()
C. : confirm()
D. : prompt()
【单选题】
以下哪个方法是用来清除超时调用的?___
A. : setInterval()
B. : clearInterval()
C. : setTimeout()
D. : clearTimeout()
【单选题】
console.log(typeof(aa));var aa=1;的结果是?___
A. : undefined
B. : number
C. : string
D. : 报错
【单选题】
console.log(a === b);___
A. : false true
B. : false false
C. : true true
D. : true false
【单选题】
若将时间类型数据直接转换为时间戳可用的方法是():___
A. : valueOf()
B. : toLocaleString()
C. : setSeconds()
D. : toString()
【单选题】
(网站工程)假设box是获取到的dom对象,以下没有语法错误的语句是?___
A. : box.width = "30px"
B. : box.style.background-image = "img/bg.jpg"
C. : box.style.color = #00f
D. : box.style.marginLeft = "5px"
【单选题】
(专基_Js)以下哪个方法是字符串位置方法的为( )。___
A. : substr()
B. : toLowerCase()
C. : toUpperCase()
D. : indexOf
【单选题】
()方法返回一个字符串,该字符串中的所有字母都被转换为大写字母:___
A. : toLowerCase
B. : ?toLocaleUpperCase
C. : toLocaleLowerCase
D. : toUpperCase
【多选题】
(专基_Js)变量的命名规范有( )。___
A. : 只能以字母下划线或$符开头
B. : 变量名不区分大小写
C. : 不能以数字你开头
D. : 可以使用关键字保留字命名
推荐试题
【单选题】
中国特色社会主义进入新时代,我国社会主要矛盾已经转化为人民日益增长的____需要和____的发展之间的矛盾。___
A. 美好生活 不充分不平衡
B. 幸福生活 不平衡不充分
C. 幸福生活 不充分不平衡
D. 美好生活 不平衡不充分
【单选题】
十九大的主题是:不忘初心,____,高举中国特色社会主义伟大旗帜,决胜全面建成小康社会,夺取新时代中国特色社会主义伟大胜利,为实现中华民族伟大复兴的中国梦不懈奋斗。___
A. 继续前进
B. 牢记使命
C. 方得始终
D. 砥砺前行
【单选题】
专题组织生活会应当遵循______的方针,贯彻整风精神,充分发扬民主,突出问题导向,开展积极向上的思想斗争。___
A. 批评
B. 相互批评
C. “团结—批评—团结”
D. 团结
【单选题】
民主评议党员是新时期加强党的建设的一项重要制度。在评议结果为______的党员中评选出一定比例的优秀共产党员,推荐上级党组织表彰奖励。___
A. 优秀
B. 合格
C. 优秀、合格
D. 优秀、合格、基本合格