对大家有帮助的问答会被标记为“推荐”,看完课程过来浏览一下别人提的问题,会帮你学得更全面
这个地方必须用box吗?我名字用别的就没法用。 如果我名字不相同,这个地方直接使用box,允许吗? 会不会有影响?
变圆型100%我能理解,为什么50%也可以?是什么原理?我测试了: 60%、80%、90%,好像都是,只有低于50%才会变化。
老师我代码鼠标按下和释放都不触发请老师解惑
全部代码
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <input type="text" id="name"> <script> var name = document.getElementById("name"); name.onkeydown = function(e){ console.log("按下了"); } name.onkeyup = function(e){ console.log(e.target.value);//value属性就是输入框的数据 } </script> </body> </html>
var a=["sxt","baizhan","it"];
//for循环
for(var i=0;i<a.length;i++){
console.log(a[i]);
}
var i=0;
while(i<a.length){
console.log(a[i]);
i++;
}
for循环里的i与while循环上面的i有没有关系?
var gwlbb="天上明月光,疑是地上霜,能做我女朋友吗?举头望明月,低头思故乡"; if(gwlbb.indexOf("能做我女朋友吗?")>-1){ console.log("表白成功"); }else{ console.log("表白失败"); }
我这个为什么显示的是表白失败?
var hello="hello world";
console.log(hello.indexOf(""));
我想显示中间那个空白的启示位置为什么显示的是0?
var one =1;
var two=2;
var three="3";
console.log("".concat(one,two,three));
为什么不能写成console.log(one.concat(two,three));?