摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <span id="yz" style="background: url(images/1.png);width: 80px;font-style: italic;height: 20px;border: 1px solid bla 阅读全文
posted @ 2019-08-11 14:49 Yi只猴 阅读(1551) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style> input{width:50px;height: 20px;border:1px solid black;} .time1 span{display:inline-block;width:40px;height: 20px;} </style> 阅读全文
posted @ 2019-08-11 14:46 Yi只猴 阅读(156) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>益智类游戏别踩白块小游戏</title> <style type="text/css"> * { margin: 0; padding: 0; } .box { margin: 50px auto 0 auto; width: 400px; height: a 阅读全文
posted @ 2019-08-10 21:53 Yi只猴 阅读(251) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>JS贪吃蛇-练习</title> <style type="text/css"> #pannel table { border-collapse: collapse; } #pannel 阅读全文
posted @ 2019-08-10 21:45 Yi只猴 阅读(135) 评论(0) 推荐(0) 编辑
摘要: JS贪吃蛇-练习 阅读全文
posted @ 2019-08-10 21:38 Yi只猴 阅读(310) 评论(0) 推荐(0) 编辑
摘要: String.prototype.nospace = function(){ return this.replace(/\s/g,"") } var str = " hello world "; console.log(str.nospace()); //helloworld 阅读全文
posted @ 2019-08-03 13:36 Yi只猴 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 在原型对象上创建的方法是共享的 阅读全文
posted @ 2019-08-03 13:32 Yi只猴 阅读(255) 评论(0) 推荐(0) 编辑
摘要: length:获取数组长度 快速的清空数组或快速的改变数组的个数 push() 向数组的尾部添加一个或多个元素 返回数组新长度 shift() 删除数组头部的元素 unshift() 向数组头部添加一个或多个元素 splice() 以上是都会改变原数组 slice(start,end) 截取从sta 阅读全文
posted @ 2019-08-03 13:17 Yi只猴 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 01、获取滚动条滚动的距离 02、获取非行间样式 03、获取事件对象 04、获取键盘信息 05、阻止浏览器的默认行为 06、阻止事件冒泡 07、事件监听 08、事件解绑 09、获取事件源 10、ajax兼容 11.取消拖拽时的文字选中状态 阅读全文
posted @ 2019-08-02 17:46 Yi只猴 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 为什么要使用token? 阅读全文
posted @ 2019-08-02 17:12 Yi只猴 阅读(2083) 评论(0) 推荐(0) 编辑