彩虹更新中

导航

 

2020年4月26日

摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
posted @ 2020-04-26 22:00 彩虹更新中 阅读(100) 评论(0) 推荐(0) 编辑
 

2020年4月24日

摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
posted @ 2020-04-24 17:46 彩虹更新中 阅读(116) 评论(0) 推荐(0) 编辑
 

2020年4月22日

摘要: 1.以系统管理员身份运行powershell 2.链接数据库 mongo 3.查看数据库 show dbs 4.切换到admin数据库,use admin 5.创建超级管理员账号 db.createUser() 例子: db.createUser({user:'root',pwd:'root',ro 阅读全文
posted @ 2020-04-22 20:03 彩虹更新中 阅读(459) 评论(0) 推荐(0) 编辑
 

2020年4月13日

摘要: const http = require('http'); const server = http.createServer(); const mongoose = require('mongoose'); const url = require('url') const mime = requir 阅读全文
posted @ 2020-04-13 16:52 彩虹更新中 阅读(285) 评论(0) 推荐(0) 编辑
 

2020年4月9日

摘要: 引用借鉴:https://www.jianshu.com/p/82dfc29e70ab 本篇记录gulp使用流程及常用插件。 1.gulp使用流程: ① 安装依赖gulp包 全局命令:npm install -g gulp 项目开发模式:npm install --save-dev gulp 项目生 阅读全文
posted @ 2020-04-09 11:13 彩虹更新中 阅读(228) 评论(0) 推荐(0) 编辑
 

2020年3月29日

摘要: 注意: // 双击禁止选定文字 window.getSelection ? window.getSelection().removeAllRanges() : document.selection.empty(); <!DOCTYPE html> <html lang="en"> <head> <m 阅读全文
posted @ 2020-03-29 23:19 彩虹更新中 阅读(1803) 评论(0) 推荐(0) 编辑
 
摘要: $(function() { var recommend_offTop = $('.recommend').offset().top; var flag = true; // 当页面卷相关位置的时候,固定栏显示 ifdisplay() function ifdisplay() { $(documen 阅读全文
posted @ 2020-03-29 19:44 彩虹更新中 阅读(195) 评论(0) 推荐(0) 编辑
 

2020年3月26日

摘要: 文章来自于https://www.runoob.com/jquery/jquery-ref-selectors.html 非常实用,马克下来 1.基本选择器 $("#id") //ID选择器 $("div") //元素选择器 $(".classname") //类选择器 $(".classname, 阅读全文
posted @ 2020-03-26 22:41 彩虹更新中 阅读(86) 评论(0) 推荐(0) 编辑
 
摘要: 1.鼠标进入li,所有li,透明度设置为1,当前的为0.4 2.移开后,所有li,透明度全部设置为1. 3.mouseenter()、mouseleave()没有冒泡,也可以参考hover() $(function() { $('li').mouseenter(function() { $(this 阅读全文
posted @ 2020-03-26 15:19 彩虹更新中 阅读(309) 评论(0) 推荐(0) 编辑
 
摘要: 1.获取奇数行和偶数行 2.设置不一样的颜色 3.鼠标进入设置其他颜色 4.移开恢复正常或者鼠标进入重新设置隔行变色覆盖之前操作 $(function () { //高大上隔行变色 fn(); //鼠标进入高亮显示 $("ul li").mouseover(function () { fn(); $ 阅读全文
posted @ 2020-03-26 15:08 彩虹更新中 阅读(253) 评论(0) 推荐(0) 编辑