摘要: 环境准备 操作系统:支持 macOS,Linux,Windows 运行环境:建议选择 LTS 版本,最低要求 6.x 快速初始化 通过脚手架快速生成项目: $ npm i egg-init -g $ egg-init egg-example --type=simple $ cd egg-exampl 阅读全文
posted @ 2017-05-22 14:09 为生活创造乐趣 阅读(651) 评论(0) 推荐(0) 编辑
摘要: 1 Obj.hover(function(){ 2 3 $(this).css({"background":"rgba(0,0,0,.2)"}); 4 5 },function(){ 6 $(this).css({"background":"rgba(0,0,0,0)"}); 7 8 }) obje 阅读全文
posted @ 2017-04-25 15:49 为生活创造乐趣 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 此方法是利用对象属性概念,如果对象属性存在,则重复,就去掉了,相比上一个方法,这个方法感觉更好 阅读全文
posted @ 2016-10-04 12:21 为生活创造乐趣 阅读(90) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html><head><meta charset="utf-8"> <title>数组去重</title></head><body> </body><script type="text/javascript"> Array.prototype.norepeat = f 阅读全文
posted @ 2016-09-30 14:14 为生活创造乐趣 阅读(144) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title></title> <style> *{ margin:0; padding:0; } html,body{ width:100%; height:100%; position:r 阅读全文
posted @ 2016-09-30 13:34 为生活创造乐趣 阅读(810) 评论(0) 推荐(0) 编辑