自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(9)
  • 收藏
  • 关注

转载 js 弹幕、选项菜单、弹出及消除星星

弹幕 <!-- <section></section> <div><input type="text" name="" id="" value="1111111"><button>发送</button></div> <script src="./myApi.js">&lt...

2019-09-07 19:19:00 151

转载 js 抛物线、随机颜色

div:nth-of-type(1){ width: 600px; height: 2px; background: #000; position: absolute; top: 300px; } div:nth-of-type(2){ width: 2px; height: 600px; background: #000; pos...

2019-09-04 12:13:00 139

转载 js 字符串:敏感词过滤、文本框监测、验证码

//文本框监测<input type="text" id="txt"> <span id="tip"></span> <script> /* 长度为6-16 全是数字为弱 有特殊字符为强 其他为中 */ //给txt绑定事件 var str = "@#$%^&*"; txt....

2019-09-03 19:19:00 668

转载 js 对象及数组

//寻找两个数组中相同的元素中最小的元素 // var arr1 = [2,3,5,8,1,6]; // var arr2 = [7,0,5,9,4,3,7,0,6]; // var min = Infinity; // function fn(arr1, arr2){ // for(var i = 0; i < arr1.length; i++){ ...

2019-09-02 21:39:00 95

转载 js 对象

var arr = [ { id : 01, name : "zhao", math : 88, chinese : 90, english : 86, }, { id : 02, name : "qian", math : 80, chinese : 86, english : 92, }, { id : 03, ...

2019-09-02 21:28:00 89

转载 js 数据渲染

<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="...

2019-09-02 21:27:00 156

转载 js 数组应用

// 1. 通过循环按行顺序为一个5×5的二维数组a赋1到25的自然数试编程。 // function arrA(){ // var a = []; // var count = 0; // for(var i = 1; i <= 5; i++){ // var arr = []; // for(var j = 1; j <= 5; j++){...

2019-09-01 17:46:00 106

转载 js 简单函数案例

+ 编写一个函数,生成4位数字的验证码 function code(){ var code = ""; for(var i = 0; i < 4; i++){ var a = randomNum(0, 9); code += a; } return code; } console.log(code()); + 编写函数digit...

2019-08-29 20:29:00 279

转载 js 循环、选择的相关简单逻辑

输入一个数计算该数因数的个数:<input type="text" id="num"> <input type="button" value="因数的个数" id="btn"> --> <!-- <script> btn.onclick = function(){ var val = parseInt(num.va...

2019-08-28 21:40:00 138

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除