摘要:
JavaScript的数组 它的长度是动态改变的,里面可以放任意类型的元素,在内存中不连续(强类型中的集合)。 定义方式: var arr = new Array(); var arr = []; arr[] 实例var a=[1,2,3,[4]]; alert(a[3][0]); 赋值方式 .pu 阅读全文
posted @ 2019-01-04 11:18
小白WY
阅读(120)
评论(0)
推荐(0)
摘要:
用于字符串的 + 运算符 条件运算符 又叫做逻辑运算符 1==1?"aaa":"ccc"; 三步运算符: 条件?”满足”:”不满足”; 实例: 1==11?consloe.log(“aaa”):consloe.log(“bbb”); 比较运算符 运算符 描述 例子 == 等于 x==8 为 fals 阅读全文
posted @ 2019-01-04 11:12
小白WY
阅读(2417)
评论(0)
推荐(0)
摘要:
Js基础 alert(); 英文:警觉 (弹框) console.log(); 英文:控制台 confirm(""); 英文:确定 (确定取消) prompt(""); 英文:提示 (提示框) document.write(''); 英文:公文/记录 (相当于div) S变量的数据类型是解释时动态决 阅读全文
posted @ 2019-01-04 11:02
小白WY
阅读(122)
评论(0)
推荐(0)
摘要:
浮动 布局样式:显示浮动定位 显示 width: ;height: ;background-color: ; img{display:block} 解决图3像素 display:block/inline/inline-block/none; 块/行/行内块/隐藏 visibility:hidden; 阅读全文
posted @ 2019-01-04 10:59
小白WY
阅读(97)
评论(0)
推荐(0)
摘要:
背景 背景 border-radius:5px 圆角 background-color:#fff; 背景色 background-image:url(./img.jpg); 背景图(默认平铺) 背景平铺 repeat background-size: covor等比例放大图片有部分不能显示、 con 阅读全文
posted @ 2019-01-04 10:57
小白WY
阅读(350)
评论(0)
推荐(0)
摘要:
Css基础 样式: 行内<div style="color:red;"></div> 内嵌(<head>内)<style>div{background-color:red;}</style> 外部引用 <head>内:<link rel="stylesheet"(样式表) href="./xxx.c 阅读全文
posted @ 2019-01-04 10:40
小白WY
阅读(95)
评论(0)
推荐(0)

浙公网安备 33010602011771号