public class A { //定义委托 public delegate void ReturnHandler(string s); //定义事件 public event ReturnHandler returnData; } public class B { A a = new A(); ...
分类:
其他好文 时间:
2020-07-14 13:54:04
阅读次数:
61
cat /usr/local/mongodb/etc/mongodb.conf############主库配置文件n内容#################dbpath = /data/mongodb/datalogpath = /usr/local/mongodb/logs/mongodb.logf ...
分类:
数据库 时间:
2020-07-14 13:44:38
阅读次数:
70
#1.命令用途 远程操作的第一步,通常是从远程主机克隆一个版本库,这时就要用到git clone命令。 #2.命令说明 ##2.1默认参数 git clone <版本库的网址> 如:git clone https://github.com/jquery/jquery.git 该命令会在本地主机生成一 ...
分类:
其他好文 时间:
2020-07-14 13:26:39
阅读次数:
59
关于thymeleaf中th:insert、th:replace、th:include的区别 1. th:insert:保留自己的主标签,保留th:fragment的主标签 1 需要替换的片段内容: 2 <footer th:fragment="copy"> 3 <script type="text ...
分类:
其他好文 时间:
2020-07-14 13:20:09
阅读次数:
62
$(window).scroll(function(){ var S = document.body.scrollTop || document.documentElement.scrollTop; if(S >= 2000){ $(".up").css({"display":"block"}); ...
分类:
Web程序 时间:
2020-07-14 13:14:23
阅读次数:
71
实现步骤 html + bootstrap 布局画3个面板。 注:面板样式 position 属性必须是绝对位置或者相对位置。 监听面板的的 mousedown事件。 记录当前对应面板的位置target_index,设置面板透明拖动。 监听当前被拖动的面板的mousemove事件。 根据鼠标移动的位 ...
分类:
Web程序 时间:
2020-07-14 10:34:58
阅读次数:
90
WLW(window live writer)在很早之前就不更新了,后来出了一个OLW(open live writer),基本跟WLW相同,只是开源,更小巧好用。一、Open Live Writer简介目前最新版为0.6.2。官网:http://openlivewriter.org/ 开源地址:h... ...
分类:
其他好文 时间:
2020-07-14 10:33:29
阅读次数:
87
报错产生的原因 1.重复启动tomcat造成8080端口的冲突 2.其他软件占用了8080端口 解决方案 打开/tomat/bin目录,通过命令强制关闭他 其他软件占用8080,那么需要打开server.xml文件,然后修改tomcat的默认端口号,一般在是service.xml文件当中的65行 注 ...
分类:
其他好文 时间:
2020-07-14 00:53:32
阅读次数:
77
RabbitAdmin 该类封装了对 RabbitMQ 的管理操作 @Bean public RabbitAdmin rabbitAdmin(ConnectionFactory connectionFactory){ return new RabbitAdmin(connectionFactory) ...
分类:
其他好文 时间:
2020-07-13 18:47:27
阅读次数:
77
在JS中,这三者都是用来改变函数的this对象的指向的,他们有什么样的区别呢。在说区别之前还是先总结一下三者的相似之处:1、都是用来改变函数的this对象的指向的。2、第一个参数都是this要指向的对象。3、都可以利用后续参数传参。那么他们的区别在哪里的,先看一个例子。 var xw = { nam ...
分类:
移动开发 时间:
2020-07-13 18:24:45
阅读次数:
56