首页 > 新文章
  • 按钮切换 is a project mainly written in , based on the . 单选 $('#tit span').click(function() {             var i = $(this).index();//下标第一种写法             //var i = $('tit').index(this);//下标第二种写法             $(this).addClass('...

  • Vue 在浏览器控制台怎么调试 谷歌插件vue Devtools is a project mainly written in , based on the .vue 在浏览器控制台怎么调试 谷歌插件vue Devtools 问题: vuejs里面的变量,怎么用浏览器的console查看? 例如,想在chrome里用console.log查看变量$data,会显示undefined。 解决方案: 再main.js里面声明window.Vue = new Vue window.Vue = n...

  • C/C++:*(p++)慎用!!!!! is a project mainly written in , based on the .  各位代码界的大佬大家好,今天跟大家分享一个在C/C++中常用,但是很危险的一串代码——*(p++)   为什么说这一行代码比较危险呢,因为对于C/C++来说,成也指针,败也指针。C/C++中指针便于我们操作一块连续的内存空间中内容,但是同时我们也要承担一些风险,比如:内存泄漏,野指针,只想垃圾数据等等。今天我们要说的就是指向垃圾数...

  • Bootstrap框架和inconfont、font-awesome使用 is a project mainly written in , based on the .Bootstrap框架和inconfont、font-awesome使用 iconfont的使用:https://www.cnblogs.com/clschao/articles/10387580.html Bootstrap介绍   Bootstrap是Twitter开源的基于HTML、CSS、JavaScript的前端框架。  ...

  • Powershell真香 is a project mainly written in , based on the .写毕设开题报告,从PDF复制后会有多余空格,一个一个手动删除略显麻烦。 delete.cpp#include #include #include #include using namespace std; int main() {//freopen("UAS.txt"...

  • Linux负载均衡实现 is a project mainly written in , based on the .配置之前清空所有服务器防火墙规则 iptables -F 关闭selinux: 1、/usr/sbin/sestatus -v      ##如果SELinux status参数为enabled即为开启状态 SELinux status:                 enabled 2、getenforce            ...

  • 图的算法专题——最小生成树 is a project mainly written in , based on the .概要: Prim算法Kruskal算法  1、Prim算法 算法流程: (1)对图G(V,E)设置集合S来存放已被并入的顶点,然后执行n次(2)(3) (2)每次从未并入顶点集合中选择与集合S最近的一个顶点,访问u并将其加入集合S,同时把这条离集合S最近的边加入最小生成树中。 (3)优化松弛   Prim算法与Dijkstra算法使用...

  • Npm环境依赖重置 is a project mainly written in , based on the .需要彻底删除node_modules 然后npm install   如果无法删除`node_modules`文件,可以试试这个: 安装RimRaf: `npm install rimraf -g` 并在项目文件夹中删除node_modules文件夹: `rimraf node_modules` 然后你可以去`npm install`...

  • Python操作 RabbitMQ、Redis、Memcache、SQLAlchemy is a project mainly written in , based on the .Memcached Memcached 是一个高性能的分布式内存对象缓存系统,用于动态Web应用以减轻数据库负载。它通过在内存中缓存数据和对象来减少读取数据库的次数,从而提高动态、数据库驱动网站的速度。Memcached基于一个存储键/值对的hashmap。其守护进程(daemon )是用C写的,但是客户端可以用任何语言来编写,...

  • Why Sleeping May Be More Important Than Studying is a project mainly written in , based on the .Why Sleeping May Be More Important Than Studying 转载于:https://www.cnblogs.com/Lamfai/p/10441451.html...

  • Rsa证书ssh登陆服务器 is a project mainly written in , based on the .好久不用,又生疏了。 今晚实操了一下,作一个记录。 使用rsa的密钥对登陆linux服务器,主要是为了安全。 这种证书级别的登陆,比最复杂的root用户名和帐号的安全性都要高一个等级。 至少服务器不会被暴破(暴力破解)。 ~~~~~~~~~~~~~~~ 参考URL: https://www.cnblogs.com/JohnABC/p/...

  • Linux命令find命令详解 is a project mainly written in , based on the .find 查找文件 find 哪里 什么类型 什么名字 -maxdepth 最大的深度 查找目录的最大深度    find -maxdepth 1 -type d -type 找什么类型的 f file 文件 d directory 目录 -name 什么名字 -mtime 根据修改时间找出对应的文件   +7 7天前  -7...

  • Sysctl -p详解 is a project mainly written in , based on the .个人一般sysctl -p 或sysctl -a比较多使用  sysctl配置与显示在/proc/sys目录中的内核参数.可以用sysctl来设置或重新设置联网功能,如IP转发、IP碎片去除以及源路由检查等。用户只需要编辑/etc/sysctl.conf文件,即可手工或自动执行由sysctl控制的功能。     命令格式:   ...

  • 小程序全局状态管理,在页面中获取globalData和使用globalSetData is a project mainly written in , based on the .GitHub: https://github.com/WozHuang/mp-extend 主要目标 微信小程序官方没有提供类似vuex、redux全局状态管理的解决方案,但是在一个完整的项目中各组件的数据一致性是必须要保证,因此需要开发一个能够实现小程序全局状态管理的解决方案。 设计思路 参考omix后,我觉得其中实现全局状态管...

  • 病中感悟 is a project mainly written in , based on the .  昨夜急性胃炎,肚子疼了半夜,期间听音乐也觉得难受,才幡然醒悟,什么功名利禄,什么买车买房,什么人生巅峰,身体垮了,什么都是没有意义。记起一句文言小说中的话“三寸气在千般用,一旦无常万事休”。 转载于:https://www.cnblogs.com/guanghe/p/10443415.html...

  • Java中xxe漏洞修复方法 is a project mainly written in , based on the .java中禁止外部实体引用的设置方法不止一种,这样就导致有些开发者修复的时候采用的错误的方法 之所以写这篇文章是有原因的!最早是有朋友在群里发了如下一个pdf,    而当时已经是2019年1月末了,应该不是2018年7月份那个引起较大轰动的alipay java sdk的了,我突然虎躯一震,该不是。。。 进去看了一下,果然是我前不...

  • 目录test is a project mainly written in , based on the .目录 python java c++ html Helloworld    转载于:https://www.cnblogs.com/cumquat/p/10449431.html...

  • Docker redis 多个实例 is a project mainly written in , based on the .Docker运维笔记-Docker端口映射 - 恶性佛 - CSDN博客https://blog.csdn.net/qq_29994609/article/details/51730640 利用 Docker 在一台机器上部署多个 Redis 实例 - HeatDeath的博客 - CSDN博客https://blog.csdn.ne...

  • 网络编程-粘包 is a project mainly written in , based on the .粘包问题的产生   TCP流式协议     基于数据流的协议   接收方产生粘包问题     1.接收方不清楚数据有多长只接收了数据的一部分     2.接收方多读取了数据   发送方产生的粘包问题     操作系统没有及时发送前一次的数据,导致两次数据粘在一起   粘包问题的根本原因是接收方不清楚数据的长度   TCP nigle...

  • Spring中利用applicationContext.xml文件实例化对象和调用方法 is a project mainly written in , based on the .  Spring中实例化对象和调用方法入门   1.jar包和xml的准备   已上传至百度云盘,链接: https://pan.baidu.com/s/1CY0xQq3GLK06iX7tVLnp3Q  提取码: shjd ;     2.在eclipse中创建javaweb项目   1.第一次创建javaWEB项目操作步骤   1...