![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端
文章平均质量分 64
星来飞
这个作者很懒,什么都没留下…
展开
-
用JS实现乘法口诀表
*{ margin: 0px; padding: 0px;}ul,li{ list-style: none;}span{ width: 58px; height: 22px; margin-left: 10px;}$(function(){for( var i = 1; i {for( var j = 1; j原创 2017-05-20 19:56:50 · 1106 阅读 · 0 评论 -
AJAX内容
1.创建 XMLHttpRequest 对象:variable = new XMLHttpRequest(); variable=new ActiveXObject("Microsoft.XMLHTTP"); (老版本) 请检查浏览器是否支持 XMLHttpRequest 对象。如果支持,则创建 XMLHttpRequest 对象。如果不支原创 2017-05-25 00:06:02 · 339 阅读 · 0 评论 -
小动画:一个圆循环变大再透明
top .div1{ width:40px; height:40px; border-radius:100%; background: red; margin: 100px auto; animation: xsl 1s infinite ease-in-out; // infinite:循环 xsl:随意名称等于name,但下面原创 2017-05-25 21:58:32 · 664 阅读 · 0 评论 -
小动画:线条流水般变大缩小
top .line_box{ width: 100px; height: 100px; margin: 100px auto; text-align: center;} .line_box>div{ display: inline-block; width: 5px; height: 100px; background: green; -webkit-anima原创 2017-05-25 23:34:13 · 249 阅读 · 0 评论 -
JavaScript内容
function mF(){x=document.getElementById("demo"); // 找到元素x.innerHTML="Hello JavaScript!"; // 改变内容x.style.color="#ff0000"; // 改变样式}点击这里alert('') //单引号或者双引号都可以|| //或者if(原创 2017-05-16 20:51:47 · 371 阅读 · 0 评论 -
左侧显示分类栏
*{ margin: 0px; padding: 0px;}ul,li{ list-style: none;}nav{ width: 200px; background: green; position: fixed; top: 50px; left: 20px;}nav li{ width: 100%; height: 35px; line-height: 35px; positio原创 2017-06-02 22:18:57 · 993 阅读 · 0 评论 -
前端常用的javascript知识点
1、获取指定范围内的随机数let getRandomNum = (min, max) => Math.floor(Math.random() * (max - min + 1)) + min//console.log(getRandomNum(1, 3))2、随机获取数组中的元素const arr = [1,2,3,4,5]let getRandomArray = arr...原创 2019-06-19 10:57:43 · 173 阅读 · 0 评论