摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> .box{width:20px;height:20px;background: red;border-radius: 50%;position: absolute;left:0;top:0;} </style> </ 阅读全文
posted @ 2019-09-03 22:22 菜鸟小何 阅读(235) 评论(0) 推荐(0) 编辑
摘要: Math.ceil(); //向上取整。 Math.floor(); //向下取整。 Math.round(); //四舍五入。 Math.random(); //0.0 ~ 1.0 之间的一个伪随机数。【包含0不包含1】 //比如0.8647578968666494 Math.ceil(Math. 阅读全文
posted @ 2019-09-03 19:26 菜鸟小何 阅读(448) 评论(0) 推荐(0) 编辑
摘要: Document 阅读全文
posted @ 2019-09-03 16:48 菜鸟小何 阅读(192) 评论(0) 推荐(0) 编辑
摘要: // 原料 function fn(){ //将这个函数中的this改变,指向new新创建的对象 // 加工 this.name = "root"; } // // 出厂 var f = new fn();//创建了一个新对象 var f2 = new fn();//创建了一个新对象 console.log(f);//fn {name: "root"} console.log(f2)//fn {n 阅读全文
posted @ 2019-09-02 16:46 菜鸟小何 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 拖动条 10 阅读全文
posted @ 2019-09-02 14:12 菜鸟小何 阅读(127) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <title>Document</title> <styl 阅读全文
posted @ 2019-09-02 08:49 菜鸟小何 阅读(371) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Doc 阅读全文
posted @ 2019-08-30 16:57 菜鸟小何 阅读(377) 评论(0) 推荐(0) 编辑
摘要: Document 阅读全文
posted @ 2019-08-30 16:44 菜鸟小何 阅读(279) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Doc 阅读全文
posted @ 2019-08-30 16:33 菜鸟小何 阅读(409) 评论(0) 推荐(0) 编辑
摘要: Document 阅读全文
posted @ 2019-08-30 16:21 菜鸟小何 阅读(199) 评论(0) 推荐(0) 编辑